drop.chapril.org-firefoxsend/test/integration/pages/desktop/home_page.js
Danny Coates 1e62aa976d reimplemented l10n using dynamic import() (#1012)
this should greatly reduce the complexity of the l10n code
and build pipeline and eliminate the most common error
seen in sentry logs (no translate function)
2018-11-20 09:50:59 -05:00

28 lines
621 B
JavaScript

/* global browser document */
const Page = require('./page');
class HomePage extends Page {
constructor() {
super('/');
this.footerLinks = 'footer a';
this.uploadInput = '#file-upload';
this.uploadButton = '#upload-btn';
this.progress = 'progress';
this.shareUrl = '#share-url';
}
waitForPageToLoad() {
super.waitForPageToLoad();
browser.waitForExist(this.uploadInput);
this.showUploadInput();
return this;
}
showUploadInput() {
browser.execute(() => {
document.getElementById('file-upload').style.display = 'block';
});
}
}
module.exports = HomePage;