1
1
module . exports = {
2
- ' basic' : function ( browser ) {
2
+ basic : function ( browser ) {
3
3
browser
4
4
. url ( 'http://localhost:8080/basic/' )
5
5
. 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 )
8
8
// assert correct href with base
9
9
. assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/basic/' )
10
10
. assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/basic/foo' )
11
11
. assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/basic/bar' )
12
12
. assert . attributeContains ( 'li:nth-child(4) a' , 'href' , '/basic/bar' )
13
+ . assert . attributeContains ( 'li:nth-child(5) a' , 'href' , '/basic/%C3%A9' )
13
14
. assert . containsText ( '.view' , 'home' )
14
15
15
16
. click ( 'li:nth-child(2) a' )
@@ -28,10 +29,17 @@ module.exports = {
28
29
. assert . urlEquals ( 'http://localhost:8080/basic/bar' )
29
30
. assert . containsText ( '.view' , 'bar' )
30
31
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
32
37
. url ( 'http://localhost:8080/basic/foo' )
33
38
. waitForElementVisible ( '#app' , 1000 )
34
39
. assert . containsText ( '.view' , 'foo' )
40
+ . url ( 'http://localhost:8080/basic/%C3%A9' )
41
+ . waitForElementVisible ( '#app' , 1000 )
42
+ . assert . containsText ( '.view' , 'unicode' )
35
43
. end ( )
36
44
}
37
45
}
0 commit comments