Updated e2e subscription tests
Added test for bug #249 Extended tests for custom fields (work in progress)
This commit is contained in:
parent
87f7a050ab
commit
0629194f56
6 changed files with 290 additions and 88 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue