@@ -3,7 +3,7 @@ module.exports = {
3
3
browser
4
4
. url ( 'http://localhost:8080/active-links/' )
5
5
. waitForElementVisible ( '#app' , 1000 )
6
- . assert . count ( 'li a' , 10 )
6
+ . assert . count ( 'li a' , 11 )
7
7
// assert correct href with base
8
8
. assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/active-links/' )
9
9
. assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/active-links/' )
@@ -12,9 +12,10 @@ module.exports = {
12
12
. assert . attributeContains ( 'li:nth-child(5) a' , 'href' , '/active-links/users/evan' )
13
13
. assert . attributeContains ( 'li:nth-child(6) a' , 'href' , '/active-links/users/evan#foo' )
14
14
. assert . attributeContains ( 'li:nth-child(7) a' , 'href' , '/active-links/users/evan?foo=bar' )
15
- . assert . attributeContains ( 'li:nth-child(8) a' , 'href' , '/active-links/users/evan?baz=qux& foo=bar' )
16
- . assert . attributeContains ( 'li:nth-child(9) a' , 'href' , '/active-links/about ' )
15
+ . assert . attributeContains ( 'li:nth-child(8) a' , 'href' , '/active-links/users/evan?foo=bar' )
16
+ . assert . attributeContains ( 'li:nth-child(9) a' , 'href' , '/active-links/users/evan?baz=qux&foo=bar ' )
17
17
. assert . attributeContains ( 'li:nth-child(10) a' , 'href' , '/active-links/about' )
18
+ . assert . attributeContains ( 'li:nth-child(11) a' , 'href' , '/active-links/about' )
18
19
. assert . containsText ( '.view' , 'Home' )
19
20
20
21
assertActiveLinks ( 1 , [ 1 , 2 ] )
@@ -23,10 +24,11 @@ module.exports = {
23
24
assertActiveLinks ( 4 , [ 1 , 3 , 4 ] )
24
25
assertActiveLinks ( 5 , [ 1 , 3 , 5 ] )
25
26
assertActiveLinks ( 6 , [ 1 , 3 , 5 , 6 ] )
26
- assertActiveLinks ( 7 , [ 1 , 3 , 5 , 7 ] )
27
+ assertActiveLinks ( 7 , [ 1 , 3 , 5 , 7 , 8 ] )
27
28
assertActiveLinks ( 8 , [ 1 , 3 , 5 , 7 , 8 ] )
28
- assertActiveLinks ( 9 , [ 1 , 9 ] , [ 10 ] )
29
- assertActiveLinks ( 10 , [ 1 , 9 ] , [ 10 ] )
29
+ assertActiveLinks ( 9 , [ 1 , 3 , 5 , 7 , 9 ] )
30
+ assertActiveLinks ( 10 , [ 1 , 10 ] , [ 11 ] )
31
+ assertActiveLinks ( 11 , [ 1 , 10 ] , [ 11 ] )
30
32
31
33
browser . end ( )
32
34
0 commit comments