From 65cef84b8548a4d3875ffb7e398f1a532f0af198 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Tue, 20 Oct 2026 23:30:13 +0200 Subject: [PATCH] test(e2e): avoid waiting for network idle on Blazor circuit --- tests/Heimdall.E2E.Tests/E2ETestBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Heimdall.E2E.Tests/E2ETestBase.cs b/tests/Heimdall.E2E.Tests/E2ETestBase.cs index 5f32515..00ef295 100644 --- a/tests/Heimdall.E2E.Tests/E2ETestBase.cs +++ b/tests/Heimdall.E2E.Tests/E2ETestBase.cs @@ -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);