Repository navigation
Fix navigation race in Blazor recovery email template test - #70806
Open
karmegams02 wants to merge 5 commits into
Open
karmegams02 wants to merge 5 commits into
karmegams02 wants to merge 5 commits into
Conversation
Contributor
|
Thanks for your PR, @karmegams02. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Member
|
/review |
kotlarmilos
approved these changes
Nov 24, 2026
Contributor
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes a Playwright navigation race in
BlazorWebTemplate_RecoveryEmailsUseStoredAddressAndDoNotSendWithoutItwhen checking captured emails after a missing-address form submission.
Root cause
The recovery form helper submitted a synthetic form through JavaScript and
waited for the POST response, but not for the resulting document to finish
loading.
The missing-address cases then immediately read captured emails through
EvaluateAsync. Navigation could replace the document during that call,causing
Execution context was destroyed, most likely because of a navigation.Fix
_handlerinput.waits for navigation to commit.
LoadState.Loadbefore returning the captured POST response.Only the private test helper changes. Existing assertions remain unchanged.
No shipping code or public API changes.
Test
Reproduced the original failure after application startup. The existing
Chromium test passed 10 consecutive runs with the fix, checking that both
recovery actions use the stored address and send no email when it is missing.
Fixes #70568