@@ -3,41 +3,46 @@ module.exports = {
33 browser
44 . url ( 'http://localhost:8080/route-alias/' )
55 . waitForElementVisible ( '#app' , 1000 )
6- . assert . count ( 'li a' , 6 )
6+ . assert . count ( 'li a' , 7 )
77 // assert correct href with base
8- . assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/route-alias/foo' )
9- . assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/route-alias/home/bar-alias' )
10- . assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/route-alias/baz' )
11- . assert . attributeContains ( 'li:nth-child(4) a' , 'href' , '/route-alias/home/baz-alias' )
12- . assert . attributeEquals ( 'li:nth-child(5) a' , 'href' , 'http://localhost:8080/route-alias/home' )
13- . assert . attributeContains ( 'li:nth-child(6) a' , 'href' , '/route-alias/home/nested-alias/foo' )
8+ . assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/root-alias' )
9+ . assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/route-alias/foo' )
10+ . assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/route-alias/home/bar-alias' )
11+ . assert . attributeContains ( 'li:nth-child(4) a' , 'href' , '/route-alias/baz' )
12+ . assert . attributeContains ( 'li:nth-child(5) a' , 'href' , '/route-alias/home/baz-alias' )
13+ . assert . attributeEquals ( 'li:nth-child(6) a' , 'href' , 'http://localhost:8080/route-alias/home' )
14+ . assert . attributeContains ( 'li:nth-child(7) a' , 'href' , '/route-alias/home/nested-alias/foo' )
1415
1516 . click ( 'li:nth-child(1) a' )
17+ . assert . urlEquals ( 'http://localhost:8080/route-alias/root-alias' )
18+ . assert . containsText ( '.view' , 'root' )
19+
20+ . click ( 'li:nth-child(2) a' )
1621 . assert . urlEquals ( 'http://localhost:8080/route-alias/foo' )
1722 . assert . containsText ( '.view' , 'Home' )
1823 . assert . containsText ( '.view' , 'foo' )
1924
20- . click ( 'li:nth-child(2 ) a' )
25+ . click ( 'li:nth-child(3 ) a' )
2126 . assert . urlEquals ( 'http://localhost:8080/route-alias/home/bar-alias' )
2227 . assert . containsText ( '.view' , 'Home' )
2328 . assert . containsText ( '.view' , 'bar' )
2429
25- . click ( 'li:nth-child(3 ) a' )
30+ . click ( 'li:nth-child(4 ) a' )
2631 . assert . urlEquals ( 'http://localhost:8080/route-alias/baz' )
2732 . assert . containsText ( '.view' , 'Home' )
2833 . assert . containsText ( '.view' , 'baz' )
2934
30- . click ( 'li:nth-child(4 ) a' )
35+ . click ( 'li:nth-child(5 ) a' )
3136 . assert . urlEquals ( 'http://localhost:8080/route-alias/home/baz-alias' )
3237 . assert . containsText ( '.view' , 'Home' )
3338 . assert . containsText ( '.view' , 'baz' )
3439
35- . click ( 'li:nth-child(5 ) a' )
40+ . click ( 'li:nth-child(6 ) a' )
3641 . assert . urlEquals ( 'http://localhost:8080/route-alias/home' )
3742 . assert . containsText ( '.view' , 'Home' )
3843 . assert . containsText ( '.view' , 'default' )
3944
40- . click ( 'li:nth-child(6 ) a' )
45+ . click ( 'li:nth-child(7 ) a' )
4146 . assert . urlEquals ( 'http://localhost:8080/route-alias/home/nested-alias/foo' )
4247 . assert . containsText ( '.view' , 'Home' )
4348 . assert . containsText ( '.view' , 'nested foo' )
0 commit comments