@@ -24,9 +24,8 @@ public NavigationLockPrerenderingTest(
24
24
public override Task InitializeAsync ( )
25
25
=> InitializeAsync ( BrowserFixture . RoutingTestContext ) ;
26
26
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 ( )
30
29
{
31
30
Navigate ( "/locked-navigation" ) ;
32
31
@@ -35,13 +34,24 @@ public void NavigationIsLockedAfterPrerendering()
35
34
36
35
BeginInteractivity ( ) ;
37
36
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
-
42
37
// Assert that external navigations are blocked
43
38
Browser . Navigate ( ) . GoToUrl ( "about:blank" ) ;
44
39
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" ) ) ;
45
55
Browser . Equal ( "Prevented navigations: 1" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
46
56
}
47
57
0 commit comments