Skip to content

Commit 0f28172

Browse files
committed
Rename according to feedback.
1 parent 37b0a3c commit 0f28172

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Components/test/E2ETest/ServerRenderingTests/EnhancedNavigationTestUtil.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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}')");

0 commit comments

Comments
 (0)