Repository navigation
test: cross onto the modal preview in one move - #6503
Merged
Merged
Conversation
`test_a_preview_covers_no_neighbour_and_takes_the_pointer_in_a_modal` moved the pointer from the dialog's control onto its preview in four steps. The second step lands on the dialog between the two, where the pointer has left its target for nothing, so the preview goes a dwell (200 ms) later unless the pointer reaches it first (preview.js, `point`). The test's page clock (`clocked`) is installed but keeps real time until `dwelt` runs it, so on a starved runner Firefox took the next step more than a dwell later, put the preview away as its contract says, and the test read the dialog under the point it then checked: "the dialog left the preview inert". Locally, holding the pointer at that step for 300 ms fails the test every time, and without the hold it passes. A user's own crossing reaches the page as input queued ahead of that timer, so this is a test fix. The test now moves straight onto the preview, as `test_a_control_previews_its_word_and_every_key_that_presses_it` does. > _This was written by Claude Code on behalf of max-sixty_
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.
test_a_preview_covers_no_neighbour_and_takes_the_pointer_in_a_modal[firefox_browser]fails on CI's Mac under load with "the dialog left the preview inert", though the preview stands in the dialog and takes the pointer. The test's own pointer path was the cause, so this changes only the test.Cause. The test moved the pointer from the dialog's control onto its preview in four steps. The second step lands on the dialog between the two, where the pointer has left its target for nothing. The preview then goes a dwell (200 ms) later unless the pointer reaches it first (
pointinpreview.js). The test's page clock (clocked) is installed but keeps real time untildweltruns it forward. On a starved runner, Firefox took the next step more than a dwell later, put the preview away as its contract says, and the test found the dialog under the point it checked.Fix. The test moves straight onto the preview, as
test_a_control_previews_its_word_and_every_key_that_presses_itdoes.Evidence (CI's Mac, Firefox, four copies at once):
da54f91036At main's rate, 32 copies would have failed about 12.
Found while working through the macOS-only failures in #6392.