Repository navigation
test: run the file editor's phone status-controls test on real animation frames - #7027
Merged
Merged
Conversation
…ion frames The test installed Playwright's clock before the page loaded, which turns requestAnimationFrame into a timer, so CodeMirror's measure after the file's text arrived could land after a real paint and the watch saw the gutter rows move from 14px to 24px with no input. Its run_for calls only skipped the save delay and the retry's wait, which short_aims' visibility wait already covers. The behavior it checks, a finger-sized Retry and conflict control at 390px under touch, is unchanged. Closes #6872
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_file_editor_status_controls_take_a_finger_on_a_phonefailed on macOS in scheduled run 45378690705 withmoved-without-inputon the editor's.cm-gutterElementrows by (0, 4) and (0, 14). That is the shift #6905 traced to Playwright's fake clock in the neighbouringadopted_texttest, and this test installed the same clock before the page loaded. The clock turnsrequestAnimationFrameinto a timer, so CodeMirror's measure afterview.setStatecan land after a real paint, and the watch sees the gutter rows move from their 14px estimate to the editor's 24px lines with no input.The clock only advanced the 500 ms save delay and the retry's wait, and
short_aimsalready waits for each control to be visible before measuring it. The test now runs on real time with every assertion unchanged: Retry and the conflict menu still have to be finger-sized at 390px under touch.Evidence (
leaf-dev suite flake --cpu-throttle 8on Linux):e80dd78beThe other clocked test in this file installs its clock after the editor has loaded and has shown no such failure, so it is left alone.
This was the last open item in #6872: the ring, the
adopted_textsave test and the read-state shift were fixed in #6887, #6905 and #6974, and the align and motion tests wait for a recurrence.Closes #6872 — automated triage