File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
src/Components/test/E2ETest/ServerExecutionTests Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public override Task InitializeAsync()
2626
2727 [ Fact ]
2828 [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/57153" ) ]
29- public void NavigationIsLockedAfterPrerendering ( )
29+ public void ExternalNavigationIsLockedAfterPrerendering ( )
3030 {
3131 Navigate ( "/locked-navigation" ) ;
3232
@@ -35,13 +35,24 @@ public void NavigationIsLockedAfterPrerendering()
3535
3636 BeginInteractivity ( ) ;
3737
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-
4238 // Assert that external navigations are blocked
4339 Browser . Navigate ( ) . GoToUrl ( "about:blank" ) ;
4440 Browser . SwitchTo ( ) . Alert ( ) . Dismiss ( ) ;
41+ Browser . Equal ( "Prevented navigations: 0" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
42+ }
43+
44+ [ Fact ]
45+ public void InternalNavigationIsLockedAfterPrerendering ( )
46+ {
47+ Navigate ( "/locked-navigation" ) ;
48+
49+ // Assert that the component rendered successfully
50+ Browser . Equal ( "Prevented navigations: 0" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
51+
52+ BeginInteractivity ( ) ;
53+
54+ // Assert that internal navigations are blocked
55+ Browser . Click ( By . Id ( "internal-navigation-link" ) ) ;
4556 Browser . Equal ( "Prevented navigations: 1" , ( ) => Browser . FindElement ( By . Id ( "num-prevented-navigations" ) ) . Text ) ;
4657 }
4758
You can’t perform that action at this time.
0 commit comments