Skip to content

Commit 13a4d7f

Browse files
committed
test: composables
1 parent 50332e5 commit 13a4d7f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Diff for: test/e2e/specs/composables.js

+19-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module.exports = {
99
browser
1010
.url('http://localhost:8080/composables/')
1111
.waitForElementVisible('#app', 1000)
12-
.assert.count('li', 2)
13-
.assert.count('li a', 2)
12+
.assert.count('li', 4)
13+
.assert.count('li a', 4)
1414
.assert.containsText('.view', 'Home')
1515

1616
.click('li:nth-child(2) a')
@@ -23,6 +23,23 @@ module.exports = {
2323
.click('button#nav')
2424
.assert.containsText('#fullpath', '/?n=1')
2525

26+
.end()
27+
},
28+
29+
'useLink()': function (browser) {
30+
browser
31+
.url('http://localhost:8080/composables/')
32+
.waitForElementVisible('#app', 1000)
33+
.assert.containsText('.view', 'Home')
34+
35+
.assert.containsText('#nested-active', '/composables/nested: false, false')
36+
.click('li:nth-child(3) a')
37+
.assert.containsText('#nested-active', '/composables/nested: true, true')
38+
.click('li:nth-child(4) a')
39+
.assert.containsText('#nested-active', '/composables/nested: true, false')
40+
.click('#nested-active')
41+
.assert.containsText('#nested-active', '/composables/nested: true, true')
42+
2643
.end()
2744
}
2845

0 commit comments

Comments
 (0)