File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Components/test/E2ETest/ServerRenderingTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static void SuppressEnhancedNavigation<TServerFixture>(ServerTestBase<TSe
3737 var testId = ( ( IJavaScriptExecutor ) browser ) . ExecuteScript ( $ "return sessionStorage.getItem('test-id')") ;
3838 if ( testId is null || string . IsNullOrEmpty ( testId as string ) )
3939 {
40- testId = GrantTestId ( browser ) ;
40+ testId = GenerateTestId ( browser ) ;
4141 }
4242
4343 ( ( IJavaScriptExecutor ) browser ) . ExecuteScript ( $ "sessionStorage.setItem('suppress-enhanced-navigation-{ testId } ', 'true')") ;
@@ -103,10 +103,10 @@ private static void NavigateToOrigin<TServerFixture>(ServerTestBase<TServerFixtu
103103 {
104104 // Navigate to the test origin to ensure the browser is on the correct state to access sessionStorage
105105 fixture . Navigate ( $ "{ fixture . ServerPathBase } /") ;
106- fixture . Browser . Equal ( "Hello" , ( ) => fixture . Browser . Exists ( By . TagName ( "h1" ) ) . Text ) ;
106+ fixture . Browser . Exists ( By . Id ( "session-storage-anchor" ) ) ;
107107 }
108108
109- private static string GrantTestId ( IWebDriver browser )
109+ private static string GenerateTestId ( IWebDriver browser )
110110 {
111111 var testId = Guid . NewGuid ( ) . ToString ( "N" ) [ ..8 ] ;
112112 ( ( IJavaScriptExecutor ) browser ) . ExecuteScript ( $ "sessionStorage.setItem('test-id', '{ testId } ')") ;
You can’t perform that action at this time.
0 commit comments