Skip to content

[release/10.0] Synchronize navigation lock E2E test with browser prompt updates - #70486

Merged
wtgodbe merged 1 commit into
release/10.0from
wtgodbe/backport-navigation-sync-release10
Nov 11, 2026
Merged

wtgodbe merged 1 commit into
release/10.0from
wtgodbe/backport-navigation-sync-release10

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Nov 10, 2026

Copy link
Copy Markdown
Member

Backport of #70382 to release/10.0.

Wait for completed browser navigation-prompt registration/unregistration before attempting navigation, rather than treating a checkbox click as proof that asynchronous JS interop has completed. Preserve the branch's existing quarantine, alert handling, and final URL assertions.

The thirty-day PR audit found external-navigation-lock failures in at least six release/10.0 builds, including NoAlertPresentException. The original patch did not apply with a plain patch check, but Git's three-way cherry-pick applied the upstream changes without manual code edits.

Validation:

  • Exact upstream additions/deletions, changed-file scope, C# syntax, unchanged quarantine attributes, and git diff --check verified.
  • Embedded JavaScript syntax and registration-observer logic checked in isolation with Node.
  • Focused E2E execution blocked before compilation: pinned SDK 10.0.114 is not installed. Isolated checks are not an E2E pass; branch integration validation requires CI.

…pt updates

Backport of #70382.

(cherry picked from commit f0e16a1)

Co-authored-by: Copilot <[email protected]>
@wtgodbe
wtgodbe requested a review from a team as a code owner November 10, 2026 23:23
Copilot AI balanced review requested due to automatic review settings November 10, 2026 23:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, though focused E2E verification is still pending CI because the pinned SDK is unavailable.

No open issues 🎉

What changed in this PR

Backports the navigation-lock E2E synchronization fix to release/10.0, making the test wait for browser prompt registration changes before attempting navigation.

Changes:

  • Tracks completed prompt registration and unregistration through JavaScript wrappers.
  • Waits for the expected active-lock count after each checkbox click, preserving existing quarantine, alert handling, and final URL assertions.

Focused E2E execution remains unverified because the pinned SDK is unavailable; CI validation is still required.

File Description
src/​Components/​test/​E2ETest/​Tests/​RoutingTest.cs Adds prompt-registration tracking and waits to synchronize external-navigation-lock testing.

Review effort: Balanced

@wtgodbe
wtgodbe merged commit 83266de into release/10.0 Nov 11, 2026
36 checks passed
@wtgodbe
wtgodbe deleted the wtgodbe/backport-navigation-sync-release10 branch November 11, 2026 17:29
@dotnet-policy-service dotnet-policy-service Bot added this to the 10.0.14 milestone Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants