Skip to content

Commit 6066e3a

Browse files
committed
Update blazor.server.js
1 parent f853385 commit 6066e3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected override void InitializeAsyncCore()
5555
public async Task ReloadingThePage_GracefullyDisconnects_TheCurrentCircuit()
5656
{
5757
// Arrange & Act
58-
_ = ((IJavaScriptExecutor)Browser).ExecuteScript("location.reload()");
58+
Browser.Navigate().Refresh();
5959
await Task.WhenAny(Task.Delay(10000), GracefulDisconnectCompletionSource.Task);
6060

6161
// Assert
@@ -70,7 +70,6 @@ public async Task ClosingTheBrowserWindow_GracefullyDisconnects_TheCurrentCircui
7070
Browser.Close();
7171
// Set to null so that other tests in this class can create a new browser if necessary so
7272
// that tests don't fail when running together.
73-
Browser = null;
7473

7574
await Task.WhenAny(Task.Delay(10000), GracefulDisconnectCompletionSource.Task);
7675

0 commit comments

Comments
 (0)