Repository navigation
[blazor] Harden overlapping navigation lock tests - #70860
Conversation
Wait for the navigation lock to become ready before starting overlapping navigations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the change adding navigation-lock readiness waits to the overlapping-navigation E2E tests.
No open issues 🎉
What changed in this PR
Hardens Blazor’s overlapping-navigation E2E tests by waiting for navigation-lock readiness before initiating navigation, targeting the intermittent failures associated with #68642.
Changes:
- Adds readiness waits to the PushState, programmatic-navigation, and internal-link tests.
- Follows the existing HistoryNavigation pattern without changing runtime code or cancellation assertions.
| File | Description |
|---|---|
src/Components/test/E2ETest/Tests/RoutingTest.cs |
Adds readiness polling after enabling the navigation lock in three overlapping-navigation tests. |
Review effort: Balanced
|
/azp run aspnetcore-ci Note This comment was generated with the assistance of GitHub Copilot. |
|
No pipelines are associated with this pull request. |
|
/ba-g Failures are unrelated The PR changes only Note This comment was generated with the assistance of GitHub Copilot. |
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR only hardens E2E navigation-lock tests (RoutingTest.cs). Confident, not an insufficient-evidence case. Documentation surfaces considered
|
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
abbb2c4f006ba24e12b83e9039add0db92c5e61e↓ Linux CI has not been validated.
↓ The original CI timing was not instrumented.
[blazor] Harden overlapping navigation lock tests
Wait for navigation locks before testing overlapping navigations.
Description
Wait for the existing navigation-lock readiness marker after enabling the lock in the PushState, programmatic navigation, and internal-link navigation tests. A navigation can otherwise precede handler registration and bypass the lock. HistoryNavigation already waits for readiness.
The unchanged PushState test reproduced the CI failure locally on repetition 12. A controlled browser probe held the checkbox event: navigation bypassed the lock in 30/30 runs before releasing it, while waiting for readiness blocked the first navigation and allowed the second in 30/30 runs. The exact ordering in the original CI incident is unconfirmed.
Validation
Related to #68642 (closed quarantine issue); observed on the unrelated #70836.
Note
This PR description was generated with the assistance of GitHub Copilot.