mirror of
https://github.com/timvisee/send.git
synced 2026-04-21 22:14:33 -04:00
updated integration tests for new ui
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user