Updated e2e subscription tests

Added test for bug #249
Extended tests for custom fields (work in progress)
This commit is contained in:
witzig 2017-06-11 18:48:41 +02:00
parent 87f7a050ab
commit 0629194f56
6 changed files with 290 additions and 88 deletions

View file

@ -14,7 +14,7 @@ module.exports = (...extras) => Object.assign({
elements: {},
async getElement(key) {
return await driver.findElement(By.css(this.elements[key]));
return await driver.findElement(By.css(this.elements[key] || key));
},
async getLinkParams(key) {
@ -38,7 +38,7 @@ module.exports = (...extras) => Object.assign({
if (selector) {
await driver.wait(until.elementLocated(By.css(selector)), waitTimeout);
}
for (const elem of (this.elementsToWaitFor || [])) {
const sel = this.elements[elem];
if (!sel) {