Skip to content

Quarantine Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerRoutingTest.NavigationLock_OverlappingNavigationsCancelExistingNavigations_HistoryNavigation #61080

Description

@radical

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

  1. ghost added
    area-blazor
    on Mar 21, 2025
  2. added this to the .NET 10 Planning milestone on Mar 25, 2025
  3. modified the milestones: 10.0-rc1, 10.0-rc2 on Aug 6, 2025
  4. oroztocil commented on Sep 10, 2025

    @oroztocil
    Member

    The test is failing again. We are going to put it into quarantine and investigate more.

  5. modified the milestones: 10.0-rc2, on Sep 23, 2025
  6. modified the milestones: , 10.0.0 on Oct 22, 2025
  7. modified the milestones: 10.0.0, Backlog on Oct 22, 2025
  8. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    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 LocationChanging callbacks over the WebSocket connection.

    ServerVirtualizationTest.CanRenderHtmlTable + CanElevateEffectiveMaxItemCount_WhenOverscanExceedsMax

    These tests verify that the Virtualize component 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.

    • resource:search_pull_requests (search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65714 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65803 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65804 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #64859 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65696 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65930 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #55092 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65777 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65893 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65928 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65926 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65752 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65808 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65817 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65816 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • ... and 25 more items

    Generated by Daily Test Quarantine Management · ◷

  9. modified the milestones: Backlog, 11.0-rc1 on Jul 28, 2026
  10. modified the milestones: 11.0-rc1, 11.0-rc2 on Aug 10, 2026
  11. locked and limited conversation to collaborators on Oct 7, 2026
  12. reopened this on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-blazortest-failure

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions