Skip to content

Commit bbd7bea

Browse files
committed
fix lazy-loading e2e-tests
1 parent f098345 commit bbd7bea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/e2e/specs/lazy-loading.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
browser
44
.url('http://localhost:8080/lazy-loading/')
55
.waitForElementVisible('#app', 1000)
6-
.assert.count('li a', 3)
6+
.assert.count('li a', 4)
77
.assert.containsText('.view', 'home')
88

99
.click('li:nth-child(2) a')
@@ -15,10 +15,19 @@ module.exports = {
1515
.click('li:nth-child(1) a')
1616
.assert.containsText('.view', 'home')
1717

18+
.click('li:nth-child(4) a')
19+
.assert.containsText('.view', 'This is Bar!')
20+
.assert.containsText('.view h3', 'Baz')
21+
1822
// test initial visit
1923
.url('http://localhost:8080/lazy-loading/foo')
2024
.waitForElementVisible('#app', 1000)
2125
.assert.containsText('.view', 'This is Foo!')
26+
27+
.url('http://localhost:8080/lazy-loading/bar/baz')
28+
.waitForElementVisible('#app', 1000)
29+
.assert.containsText('.view', 'This is Bar!')
30+
.assert.containsText('.view h3', 'Baz')
2231
.end()
2332
}
2433
}

0 commit comments

Comments
 (0)