test(e2e): avoid waiting for network idle on Blazor circuit
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 11m25s

This commit is contained in:
Arnaud Dartois committed 2026-10-20 23:30:13 +02:00
1 parent d95d762299
commit 65cef84b85
1 file changed
+2 -1
+2 -1
View File
@@ -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);