updated integration tests for new ui

This commit is contained in:
Danny Coates 2018-10-31 11:31:17 -07:00
parent 891ffc20af
commit 6ba3be8a0f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
11 changed files with 65 additions and 153 deletions

View file

@ -1,9 +1,11 @@
/* global browser */
class Page {
constructor() {}
constructor(path) {
this.path = path;
}
open(path) {
browser.url(path);
open() {
browser.url(this.path);
this.waitForPageToLoad();
}
@ -12,6 +14,8 @@ class Page {
* @returns {Object} An object representing the page.
* @throws ElementNotFound
*/
waitForPageToLoad() {}
waitForPageToLoad() {
return this;
}
}
module.exports = Page;