Repository navigation
test: move a native editor's caret to its line's end on macOS with Meta+ArrowRight, not End - #7291
Merged
Merged
Conversation
…OS doesn't scroll for Refs #7284
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.
On macOS, Playwright sends End as the
scrollToEndOfDocument:editing command, which scrolls the page and leaves a native editor's caret where it stood. Two tests intest_render_aim.pypress End to move acontenteditable's caret to its end before typing, and both have failed ontest-macossince #7188 gave the document its end room. The tests now pressMeta+ArrowRighton macOS, which Playwright maps tomoveToRightEndOfLine:, and End elsewhere. Linux keeps the same key it had.test_design_mode_reads_each_shape_of_control_into_the_anchor_its_routes_carry(out of the mode): the click left the caret after the first character, so " edited" landed there and the editor readB editedackup draft.test_automatic_design_capture_never_borrows_mutable_editor_context: End scrolled the page before the test dragged a selection across the editor, so the panel field never opened.#7188's end room stays as it is. Only the key the tests use to reach the line's end changes.
Evidence from the macOS runner
Each run dispatched
ciwithflake, sotest-macosran only these two tests:mainatab811b350: both failed 6 of 6 copies (run).118f31f6d, the last scheduled pass, passed 6 of 6 (run).14ba0041cpasses, and813d3262b(Give a document's end room to rise to the window's top, and drop the deck's held height #7188), its child, fails both tests (run).scrollYto 2232 with the caret still at offset 1, andMeta+ArrowRightmoved it to 12, the text's end.Mod+Endwas tried first. It fixed the selection test but left the caret test failing 12 of 12.c541339a4, before a rebase ontomainthat touches no other line of this file).Closes #7284 — automated triage