test(e2e): avoid waiting for network idle on Blazor circuit
This commit is contained in:
1 parent
d95d762299
commit
65cef84b85
1 file changed
+2
-1
@@ -58,7 +58,8 @@ public abstract class E2ETestBase : IAsyncLifetime
|
||||
var circuitTask = Page.WaitForWebSocketAsync();
|
||||
await Page.GotoAsync($"{BaseUrl}{path}");
|
||||
await circuitTask.WaitAsync(TimeSpan.FromSeconds(15));
|
||||
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
// The Blazor circuit keeps SignalR activity open, so waiting for network
|
||||
// idle can time out even after the page and circuit are ready.
|
||||
// Give the circuit a moment to hydrate event handlers before we interact.
|
||||
// Increased delay to allow Blazor content to fully render.
|
||||
await Task.Delay(2000);
|
||||
|
||||
Reference in new issue
Block a user