refactored code/tests around download tests

This commit is contained in:
Danny Coates 2019-01-09 17:25:43 -08:00
parent 6fdb5f4f9f
commit 6cc374865e
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 11 additions and 11 deletions

View file

@ -4,6 +4,7 @@ const Page = require('./page');
class DownloadPage extends Page {
constructor(path) {
super(path);
this.fileId = /download\/(\w+)\/#/.exec(path)[1];
this.downloadButton = '#download-btn';
this.downloadComplete = '#download-complete';
}

View file

@ -9,8 +9,7 @@ class HomePage extends Page {
this.uploadButton = '#upload-btn';
this.progress = 'progress';
this.shareUrl = '#share-url';
this.downloadCountDropdown = '#expire-after-dl-count-dropdown';
this.expiresAfterText = '.text-xs.text-grey-dark.w-full.mt-2.mb-2';
this.downloadCountSelect = '#expire-after-dl-count-select';
}
waitForPageToLoad() {