فهرست منبع

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

Evan You 10 سال پیش
والد
کامیت
d0c99b1cdb
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      test/e2e/specs/modal.js

+ 3 - 2
test/e2e/specs/modal.js

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