Repository navigation
fix(desktop-e2e): let the user's click focus the page before reloading in the leave-page Escape check - #10385
Merged
Conversation
…g in the leave-page Escape check
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Low impact] The PR appears safe to merge. SummaryThe Escape check now waits for the embedded page to take focus before reloading.
Reviews (1) · Last reviewed commit: "fix(desktop-e2e): let the user's click f..." · Reviewed by Greptile |
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.
Summary
browser-page-dialogs.spec.ts"Escape keeps the draft and returns typing to the page" failed intermittently (twice in the last ~150 desktop-e2e runs) withtoBeFocused()reporting the Stay button "inactive"toBeFocusedalso requiresdocument.hasFocus(), so the button can be the active element while the Sim window lacks keyboard focus. The step clicks into the page withsendInputEventand reloads straight away; that queued click can take focus into the page after the leave-page modal has moved focus to the Sim windowType of Change
Testing
type-check, biomeChecklist
test-auditauthoring gate)