@@ -64,30 +64,6 @@ public void NavMenuHighlightsCurrentLocation()
6464 item => Assert . Equal ( "Home" , item . Text . Trim ( ) ) ) ;
6565 }
6666
67- [ Fact ]
68- public void NavMenuWithMatchLinkAllHighlightsCurrentLocationIgnoringQueryAndFragment ( )
69- {
70- var activeNavLinksSelector = By . CssSelector ( ".sidebar a.active" ) ;
71- var mainHeaderSelector = By . TagName ( "h1" ) ;
72-
73- // Verify we start at home, with the home link highlighted
74- Assert . Equal ( "Hello, world!" , Browser . Exists ( mainHeaderSelector ) . Text ) ;
75- Assert . Collection ( Browser . FindElements ( activeNavLinksSelector ) ,
76- item => Assert . Equal ( "Home" , item . Text . Trim ( ) ) ) ;
77-
78- // Navigate to Home page with an ignorable query
79- Navigate ( "/?CourseId=123456" ) ;
80- var collection1 = Browser . FindElements ( activeNavLinksSelector ) ;
81- Assert . Collection ( collection1 ,
82- item => Assert . Equal ( "Home" , item . Text . Trim ( ) ) ) ;
83-
84- // Navigate to Home page with an ignorable fragment
85- Navigate ( "/#section-123456" ) ;
86- var collection2 = Browser . FindElements ( activeNavLinksSelector ) ;
87- Assert . Collection ( collection2 ,
88- item => Assert . Equal ( "Home" , item . Text . Trim ( ) ) ) ;
89- }
90-
9167 [ Fact ]
9268 public void HasCounterPage ( )
9369 {
0 commit comments