11module . exports = {
2- ' basic' : function ( browser ) {
2+ basic : function ( browser ) {
33 browser
44 . url ( 'http://localhost:8080/basic/' )
55 . waitForElementVisible ( '#app' , 1000 )
6- . assert . count ( 'li' , 4 )
7- . assert . count ( 'li a' , 4 )
6+ . assert . count ( 'li' , 5 )
7+ . assert . count ( 'li a' , 5 )
88 // assert correct href with base
99 . assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/basic/' )
1010 . assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/basic/foo' )
1111 . assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/basic/bar' )
1212 . assert . attributeContains ( 'li:nth-child(4) a' , 'href' , '/basic/bar' )
13+ . assert . attributeContains ( 'li:nth-child(5) a' , 'href' , '/basic/%C3%A9' )
1314 . assert . containsText ( '.view' , 'home' )
1415
1516 . click ( 'li:nth-child(2) a' )
@@ -28,10 +29,17 @@ module.exports = {
2829 . assert . urlEquals ( 'http://localhost:8080/basic/bar' )
2930 . assert . containsText ( '.view' , 'bar' )
3031
31- // check initial visit
32+ . click ( 'li:nth-child(5) a' )
33+ . assert . urlEquals ( 'http://localhost:8080/basic/%C3%A9' )
34+ . assert . containsText ( '.view' , 'unicode' )
35+
36+ // check initial visit
3237 . url ( 'http://localhost:8080/basic/foo' )
3338 . waitForElementVisible ( '#app' , 1000 )
3439 . assert . containsText ( '.view' , 'foo' )
40+ . url ( 'http://localhost:8080/basic/%C3%A9' )
41+ . waitForElementVisible ( '#app' , 1000 )
42+ . assert . containsText ( '.view' , 'unicode' )
3543 . end ( )
3644 }
3745}
0 commit comments