updated integration tests for new ui
This commit is contained in:
parent
891ffc20af
commit
6ba3be8a0f
11 changed files with 65 additions and 153 deletions
|
@ -1,23 +1,26 @@
|
|||
/* global browser document */
|
||||
const Page = require('./page');
|
||||
|
||||
class HomePage extends Page {
|
||||
constructor() {
|
||||
super();
|
||||
this.legalSectionLinks = '.legalSection .legalSection__link';
|
||||
this.readyToSendLocator = 'div#page-one button.btn';
|
||||
this.socialLinksLocator = '.socialSection__link';
|
||||
super('/');
|
||||
this.footerLinks = 'footer a';
|
||||
this.uploadInput = '#file-upload';
|
||||
this.uploadButton = '#upload-btn';
|
||||
this.progress = 'progress';
|
||||
this.shareUrl = '#share-url';
|
||||
}
|
||||
|
||||
get legalLinks() {
|
||||
return this.legalSectionLinks;
|
||||
waitForPageToLoad() {
|
||||
browser.waitForExist(this.uploadInput);
|
||||
this.showUploadInput();
|
||||
return this;
|
||||
}
|
||||
|
||||
get readyToSend() {
|
||||
return this.readyToSendLocator;
|
||||
}
|
||||
|
||||
get socialLinks() {
|
||||
return this.socialLinksLocator;
|
||||
showUploadInput() {
|
||||
browser.execute(() => {
|
||||
document.getElementById('file-upload').style.display = 'block';
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = HomePage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue