You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
755 B

9 years ago
module.exports = {
'commits': function (browser) {
browser
.url('http://localhost:8080/examples/commits/')
.waitForElementVisible('li', 5000)
.assert.count('input', 2)
.assert.count('label', 2)
9 years ago
.assert.containsText('label[for="master"]', 'master')
.assert.containsText('label[for="dev"]', 'dev')
.assert.checked('#master')
.assert.checked('#dev', false)
.assert.containsText('p', 'vuejs/vue@master')
.assert.count('li', 3)
.assert.count('li .commit', 3)
.assert.count('li .message', 3)
.click('#dev')
.assert.containsText('p', 'vuejs/vue@dev')
.assert.count('li', 3)
.assert.count('li .commit', 3)
.assert.count('li .message', 3)
9 years ago
.end()
}
}