mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
chore: remove stale tests [ci skip]
This commit is contained in:
parent
ab110cf8a9
commit
7618851323
@ -1,27 +0,0 @@
|
||||
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')
|
||||
.waitFor(50)
|
||||
.assert.cssClassPresent('.modal-mask', 'modal-enter-active')
|
||||
.waitFor(300)
|
||||
.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')
|
||||
.waitFor(50)
|
||||
.assert.cssClassPresent('.modal-mask', 'modal-leave-active')
|
||||
.waitFor(300)
|
||||
.assert.elementNotPresent('.modal-mask')
|
||||
.end()
|
||||
}
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
declare const vm: any
|
||||
|
||||
module.exports = {
|
||||
'select2': function (browser) {
|
||||
browser
|
||||
.url('http://localhost:8080/examples/select2/')
|
||||
.waitForElementVisible('.select2', 1000)
|
||||
.assert.elementPresent('select')
|
||||
.assert.containsText('p', 'Selected: 0')
|
||||
.assert.containsText('span.select2', 'Select one')
|
||||
|
||||
.click('.select2-selection__rendered')
|
||||
.assert.count('.select2-results__option', 3)
|
||||
.assert.containsText('.select2-results__option:nth-child(1)', 'Select one')
|
||||
.assert.containsText('.select2-results__option:nth-child(2)', 'Hello')
|
||||
.assert.containsText('.select2-results__option:nth-child(3)', 'World')
|
||||
.assert.attributePresent('.select2-results__option:nth-child(1)', 'aria-disabled')
|
||||
|
||||
.click('.select2-results__option:nth-child(2)')
|
||||
.assert.count('.select2-results__option', 0)
|
||||
.assert.containsText('p', 'Selected: 1')
|
||||
.assert.containsText('span.select2', 'Hello')
|
||||
|
||||
// test dynamic options
|
||||
.execute(function () {
|
||||
vm.options.push({ id: 3, text: 'Vue' })
|
||||
})
|
||||
.click('.select2-selection__rendered')
|
||||
.assert.count('.select2-results__option', 4)
|
||||
.assert.containsText('.select2-results__option:nth-child(1)', 'Select one')
|
||||
.assert.containsText('.select2-results__option:nth-child(2)', 'Hello')
|
||||
.assert.containsText('.select2-results__option:nth-child(3)', 'World')
|
||||
.assert.containsText('.select2-results__option:nth-child(4)', 'Vue')
|
||||
|
||||
.click('.select2-results__option:nth-child(4)')
|
||||
.assert.count('.select2-results__option', 0)
|
||||
.assert.containsText('p', 'Selected: 3')
|
||||
.assert.containsText('span.select2', 'Vue')
|
||||
|
||||
.execute(function () {
|
||||
vm.selected = 2
|
||||
})
|
||||
.assert.containsText('p', 'Selected: 2')
|
||||
.assert.containsText('span.select2', 'World')
|
||||
.end()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user