@@ -24,9 +24,8 @@ public NavigationLockPrerenderingTest(
2424 public override Task InitializeAsync ( )
2525 => InitializeAsync ( BrowserFixture . RoutingTestContext ) ;
2626
27- [ Fact ]
28- [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/57153" ) ]
29- public void NavigationIsLockedAfterPrerendering ( )
27+ [ Fact ( Skip = "https://github.com/dotnet/aspnetcore/issues/57153" ) ]
28+ public void ExternalNavigationIsLockedAfterPrerendering ( )
3029 {
3130 Navigate ( "/locked-navigation" ) ;
3231
@@ -35,13 +34,24 @@ public void NavigationIsLockedAfterPrerendering()
3534
3635 BeginInteractivity ( ) ;
3736
38- // Assert that internal navigations are blocked
39- Browser . Click ( By . Id ( "internal-navigation-link" ) ) ;
40- Browser . Equal ( "Prevented navigations: 1" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
41-
4237 // Assert that external navigations are blocked
4338 Browser . Navigate ( ) . GoToUrl ( "about:blank" ) ;
4439 Browser . SwitchTo ( ) . Alert ( ) . Dismiss ( ) ;
40+ Browser . Equal ( "Prevented navigations: 0" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
41+ }
42+
43+ [ Fact ]
44+ public void InternalNavigationIsLockedAfterPrerendering ( )
45+ {
46+ Navigate ( "/locked-navigation" ) ;
47+
48+ // Assert that the component rendered successfully
49+ Browser . Equal ( "Prevented navigations: 0" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
50+
51+ BeginInteractivity ( ) ;
52+
53+ // Assert that internal navigations are blocked
54+ Browser . Click ( By . Id ( "internal-navigation-link" ) ) ;
4555 Browser . Equal ( "Prevented navigations: 1" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
4656 }
4757
0 commit comments