@@ -8,24 +8,29 @@ module.exports = {
88 . assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/named-routes/' )
99 . assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/named-routes/foo' )
1010 . assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/named-routes/bar' )
11- . assert . containsText ( '.view' , 'home' )
11+ . assert . containsText ( 'p' , 'Current route name: home' )
12+ . assert . containsText ( '.view' , 'Home' )
1213
1314 . click ( 'li:nth-child(2) a' )
1415 . assert . urlEquals ( 'http://localhost:8080/named-routes/foo' )
15- . assert . containsText ( '.view' , 'foo' )
16+ . assert . containsText ( 'p' , 'Current route name: foo' )
17+ . assert . containsText ( '.view' , 'Foo' )
1618
1719 . click ( 'li:nth-child(3) a' )
1820 . assert . urlEquals ( 'http://localhost:8080/named-routes/bar' )
19- . assert . containsText ( '.view' , 'bar' )
21+ . assert . containsText ( 'p' , 'Current route name: bar' )
22+ . assert . containsText ( '.view' , 'Bar' )
2023
2124 . click ( 'li:nth-child(1) a' )
2225 . assert . urlEquals ( 'http://localhost:8080/named-routes/' )
23- . assert . containsText ( '.view' , 'home' )
26+ . assert . containsText ( 'p' , 'Current route name: home' )
27+ . assert . containsText ( '.view' , 'Home' )
2428
2529 // check initial visit
2630 . url ( 'http://localhost:8080/named-routes/foo' )
2731 . waitForElementVisible ( '#app' , 1000 )
28- . assert . containsText ( '.view' , 'foo' )
32+ . assert . containsText ( 'p' , 'Current route name: foo' )
33+ . assert . containsText ( '.view' , 'Foo' )
2934 . end ( )
3035 }
3136}
0 commit comments