Skip to content

[CI flake] NavigationLock cancel test observes no blocked navigation #44

Open

Description

@mmitche

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockNavigation_ThenCancel intermittently reaches its assertion before any blocked-navigation output has been observed.

Affected builds and PRs

PR PR target branch Build(s) Notes
dotnet/aspnetcore#70512 main 1676216 Linux server E2E attempts 1 and 2 failed with the same assertion; attempt 3 passed. This is one incident with two failed attempts.

Failure

Assert.NotEmpty() Failure: Collection was empty
at Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockNavigation_ThenCancel()

Evaluation and decision

The two consecutive failed attempts establish intermittent timing but the retained log does not show whether the browser event, navigation callback, or DOM update was delayed. Defer a fix until the test can be instrumented or reproduced; do not mask it with a blind delay or retry.

Coverage and validation gaps

The Linux browser/driver environment is unavailable on this Windows host. Browser console, network timing, and event-loop diagnostics were not retained.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions