mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
Added webdriverio integration tests
This commit is contained in:
committed by
Danny Coates
parent
bd02b7db8e
commit
23d629b80b
22
test/integration/pages/desktop/share_page.js
Normal file
22
test/integration/pages/desktop/share_page.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import Page from './page';
|
||||
|
||||
export default class SharePage extends Page {
|
||||
constructor() {
|
||||
super();
|
||||
this.sharePageLocator = '#shareWrapper';
|
||||
this.shareUrlLocator = '#fileUrl';
|
||||
}
|
||||
|
||||
waitForPageToLoad() {
|
||||
browser.waitUntil(() => {
|
||||
browser.waitForExist(this.sharePageLocator);
|
||||
let el = browser.element(this.sharePageLocator);
|
||||
return browser.elementIdDisplayed(el.value.ELEMENT);
|
||||
});
|
||||
return this;
|
||||
}
|
||||
|
||||
get fileUrl() {
|
||||
return this.shareUrlLocator;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user