@@ -3,41 +3,46 @@ module.exports = {
3
3
browser
4
4
. url ( 'http://localhost:8080/route-alias/' )
5
5
. waitForElementVisible ( '#app' , 1000 )
6
- . assert . count ( 'li a' , 6 )
6
+ . assert . count ( 'li a' , 7 )
7
7
// 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' )
14
15
15
16
. 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' )
16
21
. assert . urlEquals ( 'http://localhost:8080/route-alias/foo' )
17
22
. assert . containsText ( '.view' , 'Home' )
18
23
. assert . containsText ( '.view' , 'foo' )
19
24
20
- . click ( 'li:nth-child(2 ) a' )
25
+ . click ( 'li:nth-child(3 ) a' )
21
26
. assert . urlEquals ( 'http://localhost:8080/route-alias/home/bar-alias' )
22
27
. assert . containsText ( '.view' , 'Home' )
23
28
. assert . containsText ( '.view' , 'bar' )
24
29
25
- . click ( 'li:nth-child(3 ) a' )
30
+ . click ( 'li:nth-child(4 ) a' )
26
31
. assert . urlEquals ( 'http://localhost:8080/route-alias/baz' )
27
32
. assert . containsText ( '.view' , 'Home' )
28
33
. assert . containsText ( '.view' , 'baz' )
29
34
30
- . click ( 'li:nth-child(4 ) a' )
35
+ . click ( 'li:nth-child(5 ) a' )
31
36
. assert . urlEquals ( 'http://localhost:8080/route-alias/home/baz-alias' )
32
37
. assert . containsText ( '.view' , 'Home' )
33
38
. assert . containsText ( '.view' , 'baz' )
34
39
35
- . click ( 'li:nth-child(5 ) a' )
40
+ . click ( 'li:nth-child(6 ) a' )
36
41
. assert . urlEquals ( 'http://localhost:8080/route-alias/home' )
37
42
. assert . containsText ( '.view' , 'Home' )
38
43
. assert . containsText ( '.view' , 'default' )
39
44
40
- . click ( 'li:nth-child(6 ) a' )
45
+ . click ( 'li:nth-child(7 ) a' )
41
46
. assert . urlEquals ( 'http://localhost:8080/route-alias/home/nested-alias/foo' )
42
47
. assert . containsText ( '.view' , 'Home' )
43
48
. assert . containsText ( '.view' , 'nested foo' )
0 commit comments