Evan You
9 years ago
1 changed files with 25 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
module.exports = { |
|||
'modal': function (browser) { |
|||
browser |
|||
.url('http://localhost:8080/examples/modal/') |
|||
.waitForElementVisible('#app', 1000) |
|||
.assert.elementNotPresent('.modal-mask') |
|||
.click('#show-modal') |
|||
.assert.elementPresent('.modal-mask') |
|||
.assert.elementPresent('.modal-wrapper') |
|||
.assert.elementPresent('.modal-container') |
|||
.assert.cssClassPresent('.modal-mask', 'modal-enter-active') |
|||
.waitFor(350) |
|||
.assert.cssClassNotPresent('.modal-mask', 'modal-enter-active') |
|||
.assert.containsText('.modal-header h3', 'custom header') |
|||
.assert.containsText('.modal-body', 'default body') |
|||
.assert.containsText('.modal-footer', 'default footer') |
|||
.click('.modal-default-button') |
|||
// should have transition
|
|||
.assert.elementPresent('.modal-mask') |
|||
.assert.cssClassPresent('.modal-mask', 'modal-leave-active') |
|||
.waitFor(350) |
|||
.assert.elementNotPresent('.modal-mask') |
|||
.end() |
|||
} |
|||
} |
Loading…
Reference in new issue