Browse Source

make modal test more stable in chrome (all e2e tests pass)

dev
Evan You 9 years ago
parent
commit
d0c99b1cdb
  1. 5
      test/e2e/specs/modal.js

5
test/e2e/specs/modal.js

@ -9,7 +9,7 @@ module.exports = {
.assert.elementPresent('.modal-wrapper')
.assert.elementPresent('.modal-container')
.assert.cssClassPresent('.modal-mask', 'modal-enter-active')
.waitFor(350)
.waitFor(300)
.assert.cssClassNotPresent('.modal-mask', 'modal-enter-active')
.assert.containsText('.modal-header h3', 'custom header')
.assert.containsText('.modal-body', 'default body')
@ -17,8 +17,9 @@ module.exports = {
.click('.modal-default-button')
// should have transition
.assert.elementPresent('.modal-mask')
.waitFor(50)
.assert.cssClassPresent('.modal-mask', 'modal-leave-active')
.waitFor(350)
.waitFor(300)
.assert.elementNotPresent('.modal-mask')
.end()
}

Loading…
Cancel
Save