Repository navigation
Description
Failing Test(s)
- Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerRoutingTest.NavigationLock_OverlappingNavigationsCancelExistingNavigations_HistoryNavigation
Error Message
OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEmptyException: Assert.NotEmpty() Failure: Collection was empty
Stacktrace
Details
at Microsoft.AspNetCore.E2ETesting.WaitAssert.WaitAssertCore[TResult](IWebDriver driver, Func`1 assertion, TimeSpan timeout) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 132
at Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_OverlappingNavigationsCancelExistingNavigations_HistoryNavigation() in /home/vsts/work/1/s/src/Components/test/E2ETest/Tests/RoutingTest.cs:line 996
at InvokeStub_RoutingTest.NavigationLock_OverlappingNavigationsCancelExistingNavigations_HistoryNavigation(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass16_0.<Exists>b__0() in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 73
at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass19_0`1.<WaitAssertCore>b__0(IWebDriver _) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 104
Logs
Details
OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEmptyException: Assert.NotEmpty() Failure: Collection was empty
at Xunit.Assert.NotEmpty(IEnumerable collection) in /_/src/xunit.assert/Asserts/CollectionAsserts.cs:line 539
at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass16_0.<Exists>b__0() in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 73
at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass19_0`1.<WaitAssertCore>b__0(IWebDriver _) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 104
Screen shot captured at '/home/vsts/work/1/s/src/Components/test/E2ETest/bin/screenshots/9b8c7cb104cd43828ff692fa81492d78.png'
Encountered browser errors
[2025-03-21T05:47:16Z] [Info] http://127.0.0.1:42885/subdir 66:16 "Blazor server-side"
[2025-03-21T05:47:16Z] [Info] http://127.0.0.1:42885/subdir/_framework/blazor.server.js 0:45134 "[2025-03-21T05:47:16.131Z] Information: Normalizing '_blazor' to 'http://127.0.0.1:42885/subdir/_blazor'."
[2025-03-21T05:47:16Z] [Info] http://127.0.0.1:42885/subdir/_framework/blazor.server.js 0:45134 "[2025-03-21T05:47:16.146Z] Information: WebSocket connected to ws://127.0.0.1:42885/subdir/_blazor?id=OCNePiyGvxq8bUy2VISpgA."Page content:
<head>
<meta charset="utf-8">
<base href="/subdir/">
<link href="style.css" rel="stylesheet">
<link rel="icon" href="data:,">
<!-- Used by ExternalContentPackage -->
<link href="_content/TestContentPackage/styles.css" rel="stylesheet">
<link href="Components.TestServer.styles.css" rel="stylesheet">
<!--!--><!--!--><!--!--><title>Basic test app</title><!--!--><!--!--><!--!-->
</head>
<body>
<root><!--!--><div id="test-selector"><!--!-->
Select test:
<select id="test-selector-select"><option value="none">Choose...</option><!--!-->
<option value="BasicTestApp.AddRemoveChildComponents">Add/remove child components</option><!--!-->
<option value="BasicTestApp.AfterRenderInteropComponent">After-render interop component</option><!--!-->
<option value="BasicTestApp.AsyncEventHandlerComponent">Async event handlers</option><!--!-->
<option value="BasicTestApp.AuthTest.AuthRouter">Auth cases</option><!--!-->
<option value="BasicTestApp.AuthTest.CascadingAuthenticationStateParent">Cascading authentication state</option><!--!-->
<option value="BasicTestApp.BindCasesComponent">bind cases</option><!--!-->
<option value="BasicTestApp.CascadingValueTest.CascadingValueSupplier">Cascading values</option><!--!-->
<option value="Components.TestServer.CircuitContextComponent, Components.TestServer, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60">Circuit context</option><!--!-->
<option value="BasicTestApp.ComponentRefComponent">Component ref component</option><!--!-->
<option value="BasicTestApp.ConcurrentRenderParent">Concurrent rendering</option><!--!-->
<option value="BasicTestApp.ConfigurationComponent">Configuration</option><!--!-->
<option value="BasicTestApp.ConfigureRuntime">Configure runtime</option><!--!-->
<option value="BasicTestApp.ContentEditable">Content-editable</option><!--!-->
<option value="BasicTestApp.CounterComponent">Counter</option><!--!-->
<option value="BasicTestApp.CounterComponentUsingChild">Counter using child component</option><!--!-->
<option value="BasicTestApp.CounterComponentWrapper">Counter wrapped in parent</option><!--!-->
<option value="BasicTestApp.CulturePicker">Culture Picker</option><!--!-->
<option value="BasicTestApp.CustomElementsComponent">Custom elements</option><!--!-->
<option value="BasicTestApp.DataDashComponent">data-* attribute rendering</option><!--!-->
<option value="BasicTestApp.DispatchingComponent">Dispatching to sync context</option><!--!-->
<option value="BasicTestApp.DuplicateAttributesComponent">Duplicate attributes</option><!--
Build
https://dev.azure.com/dnceng-public/public/_build/results?buildId=988431&view=results
Activity
oroztocil commentedon Sep 10, 2025
The test is failing again. We are going to put it into quarantine and investigate more.
Quarantine ServerRoutingTest.NavigationLock_OverlappingNavigationsCan…
github-actions commentedon Mar 25, 2026
Investigation summary for the failing server-side E2E tests:
ServerRoutingTest.NavigationLock_OverlappingNavigationsCancelExistingNavigations_HistoryNavigation (18 failures)
This test verifies that when a navigation lock is active and a history navigation (browser Back/Forward) is initiated, the NavigationLock component properly blocks, shows UI controls, and the navigation can be completed. It has been failing consistently in the server-side execution variant.
The WASM variant (
Tests.RoutingTest) passes reliably. The server variant (ServerExecutionTests.ServerRoutingTest) has ~20% failure rate. This suggests a timing issue specific to the Blazor Server rendering path — the server-side variant communicates over a SignalR/WebSocket connection which introduces latency not present in WASM.Root cause: Likely a race condition in how the Blazor Server circuit processes navigation events, potentially related to the timing of
LocationChangingcallbacks over the WebSocket connection.ServerVirtualizationTest.CanRenderHtmlTable + CanElevateEffectiveMaxItemCount_WhenOverscanExceedsMax
These tests verify that the
Virtualizecomponent correctly renders HTML table structures and handles overscan count exceeding the max item count. Both have low failure rates (2% and 4%) in the server execution variant.Root cause: Similar to the NavigationLock test, the server execution path introduces timing variability in how items are rendered and measured in the virtualization component. The tests may be relying on synchronous rendering semantics that behave differently in server mode.
Both patterns are consistent with known flakiness in Blazor Server E2E tests where the extra network hop to the server creates timing windows not present in WASM tests.
Note
🔒 Integrity filtering filtered 41 items
Integrity filtering activated and filtered the following items during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)Unquarantine RoutingTest.NavigationLock_OverlappingNavigationsCancelE…
Unquarantine RoutingTest.NavigationLock_OverlappingNavigationsCancelE…
Unquarantine NavigationLock_OverlappingNavigationsCancelExistingNavig…