chore: remove stale tests [ci skip]

This commit is contained in:
Evan You 2022-05-20 18:22:45 +08:00
parent ab110cf8a9
commit 7618851323
2 changed files with 0 additions and 74 deletions

View File

@ -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()
}
}

View File

@ -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()
}
}