mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-10 04:05:34 +00:00
refactored code/tests around download tests
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user