Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
OlesiaSemen committed Nov 4, 2023
1 parent ec5d615 commit da316dd
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/pageObject.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
'use strict';

class Header {
get logo() {
return 'Conduit logo';
}

clickOnLogo() {
return 'Click on the ' + this.logo;
}
}

};

class PageObject {
constructor(url) {
this.url = url;
this.header = new Header();
}
}

};
class ArticlePage {
constructor(url, slug) {
this.url = url + '/' + slug;
}

class ArticlePage extends PageObject {
get commentButton() {
return '[Publish comment] button';
}

};
clickOnCommentButton() {
return 'Click on the ' + this.commentButton;
}

assertPageOpened() {
return 'The ' + this.url + ' is opened';
}
}

module.exports = {
Header,
Expand Down

0 comments on commit da316dd

Please sign in to comment.