forked from vuejs/vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasync-edge-cases.js
34 lines (28 loc) · 1.1 KB
/
async-edge-cases.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
'async edge cases': function (browser) {
browser
.url('http://localhost:8080/test/e2e/specs/async-edge-cases.html')
// #4510
.assert.containsText('#case-1', '1')
.assert.checked('#case-1 input', false)
.click('#case-1 input')
.assert.containsText('#case-1', '2')
.assert.checked('#case-1 input', true)
.click('#case-1 input')
.assert.containsText('#case-1', '3')
.assert.checked('#case-1 input', false)
// // #6566
// .assert.containsText('#case-2 button', 'Expand is True')
// .assert.containsText('.count-a', 'countA: 0')
// .assert.containsText('.count-b', 'countB: 0')
// .click('#case-2 button')
// .assert.containsText('#case-2 button', 'Expand is False')
// .assert.containsText('.count-a', 'countA: 1')
// .assert.containsText('.count-b', 'countB: 0')
// .click('#case-2 button')
// .assert.containsText('#case-2 button', 'Expand is True')
// .assert.containsText('.count-a', 'countA: 1')
// .assert.containsText('.count-b', 'countB: 1')
.end()
}
}