@@ -3,7 +3,7 @@ module.exports = {
3
3
browser
4
4
. url ( 'http://localhost:8080/lazy-loading/' )
5
5
. waitForElementVisible ( '#app' , 1000 )
6
- . assert . count ( 'li a' , 4 )
6
+ . assert . count ( 'li a' , 5 )
7
7
. assert . containsText ( '.view' , 'home' )
8
8
9
9
. click ( 'li:nth-child(2) a' )
@@ -28,6 +28,18 @@ module.exports = {
28
28
. waitForElementVisible ( '#app' , 1000 )
29
29
. assert . containsText ( '.view' , 'This is Bar!' )
30
30
. assert . containsText ( '.view h3' , 'Baz' )
31
+
32
+ // lazy loading with dynamic params: https://github.com/vuejs/vue-router/issues/2719
33
+ // direct visit
34
+ . url ( 'http://localhost:8080/lazy-loading/a/b/c' )
35
+ . waitForElementVisible ( '#app' , 1000 )
36
+ . assert . containsText ( '.view' , '/a/b/c' )
37
+ // coming from another url
38
+ . url ( 'http://localhost:8080/lazy-loading/' )
39
+ . waitForElementVisible ( '#app' , 1000 )
40
+ . click ( 'li:nth-child(5) a' )
41
+ . waitForElementVisible ( '#tagged-path' , 1000 )
42
+ . assert . containsText ( '.view' , '/a/b/c' )
31
43
. end ( )
32
44
}
33
45
}
0 commit comments