Some fixes for e2e tests
This commit is contained in:
parent
6c35046ab2
commit
f106cd2850
5 changed files with 28 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const Page = require('./page');
|
||||
let flash;
|
||||
|
||||
class Flash extends Page {
|
||||
getText() {
|
||||
|
@ -17,7 +16,7 @@ class Flash extends Page {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = driver => flash || new Flash(driver, {
|
||||
module.exports = driver => new Flash(driver, {
|
||||
elementToWaitFor: 'alert',
|
||||
elements: {
|
||||
alert: 'div.alert:not(.js-warning)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue