1+
12module . exports = {
23 'active links' : function ( browser ) {
34 browser
45 . url ( 'http://localhost:8080/active-links/' )
56 . waitForElementVisible ( '#app' , 1000 )
6- . assert . count ( 'li a' , 10 )
7+ . assert . count ( 'li a' , 11 )
78 // assert correct href with base
89 . assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/active-links/' )
910 . assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/active-links/' )
@@ -12,9 +13,10 @@ module.exports = {
1213 . assert . attributeContains ( 'li:nth-child(5) a' , 'href' , '/active-links/users/evan' )
1314 . assert . attributeContains ( 'li:nth-child(6) a' , 'href' , '/active-links/users/evan#foo' )
1415 . 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 ' )
16+ . assert . attributeContains ( 'li:nth-child(8) a' , 'href' , '/active-links/users/evan?foo=bar' )
17+ . assert . attributeContains ( 'li:nth-child(9) a' , 'href' , '/active-links/users/evan?baz=qux&foo=bar ' )
1718 . assert . attributeContains ( 'li:nth-child(10) a' , 'href' , '/active-links/about' )
19+ . assert . attributeContains ( 'li:nth-child(11) a' , 'href' , '/active-links/about' )
1820 . assert . containsText ( '.view' , 'Home' )
1921
2022 assertActiveLinks ( 1 , [ 1 , 2 ] )
@@ -23,10 +25,11 @@ module.exports = {
2325 assertActiveLinks ( 4 , [ 1 , 3 , 4 ] )
2426 assertActiveLinks ( 5 , [ 1 , 3 , 5 ] )
2527 assertActiveLinks ( 6 , [ 1 , 3 , 5 , 6 ] )
26- assertActiveLinks ( 7 , [ 1 , 3 , 5 , 7 ] )
28+ assertActiveLinks ( 7 , [ 1 , 3 , 5 , 7 , 8 ] )
2729 assertActiveLinks ( 8 , [ 1 , 3 , 5 , 7 , 8 ] )
28- assertActiveLinks ( 9 , [ 1 , 9 ] , [ 10 ] )
29- assertActiveLinks ( 10 , [ 1 , 9 ] , [ 10 ] )
30+ assertActiveLinks ( 9 , [ 1 , 3 , 5 , 7 , 9 ] )
31+ assertActiveLinks ( 10 , [ 1 , 10 ] , [ 11 ] )
32+ assertActiveLinks ( 11 , [ 1 , 10 ] , [ 11 ] )
3033
3134 browser . end ( )
3235
0 commit comments