Repository navigation
fix: update the executable revision tests for field key stops, patched state answers and deferred fault reports - #5334
Merged
Merged
Conversation
…d state answers and deferred fault reports Three merged changes left the executable revision tests reading behavior they no longer have. None of them changes product behavior here; each repair moves only the test to the contract the change set. - #5037 stops keys typed into a Leaf field at the field, so a page's bubble listener no longer hears them; a capture listener still does. The test page's Control+Alt+r hook, which presses the panel's Latest, listened in bubble, so with an editor focused it never fired and every revision wait timed out. It now listens in capture. - #5307 answers a tab that names its reading with a patch, so the mechanical-failure test reads the new reading's name from the patch's `reading` change instead of a whole answer's `reading` field. - #4966 reports a fault in the task after the one that raised it, so the fresh caret-failure test waits for the report with `reported_browser_errors` instead of taking the errors at once. Closes #5070
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.
Every test in #5070 fails on main because three merged changes moved contracts these tests still read the old way. Each repair updates only the test, to the behavior its change intended. None moves product behavior.
windowand clicks the panel's Latest row notice. Keep keys typed into Leaf's fields from bubbling to the page #5037 stops keys typed into a Leaf field at the field so a page's bubble listeners never hear them; its contract (field-keys.js) keeps capture listeners hearing them. With an editor focused, the hook never ran, the revision stayed deferred behind the composition, andwait_for_revision(page, 2)timed out. The hook now listens in capture. Bisect: the composer case passes at1c38e1070and times out at8a4e213d0(Keep keys typed into Leaf's fields from bubbling to the page #5037).test_a_mechanical_revision_failure_leaves_accepted_publication_ready. It began asStopIteration, from the same missing press. With the press fixed, it raisedKeyError: 'reading', because Send a click only the records it changed, and read again only what changed #5307 answers a tab that names its held reading with a patch. The test now reads the new reading's name from the patch's["reading"]change.test_a_fresh_revision_caret_failure_does_not_strand_deferred_arrivals. This one had a separate cause and was failing before Keep keys typed into Leaf's fields from bubbling to the page #5037 withassert ([]). Bisecting over7c1e4494ac..9a142d1c70points to fix: report faults after native document removal settles #4966, which reports a fault in the next task. The test took the errors as soon as the revision installed, so it now waits for the report withreported_browser_errors.Verification: all 16 tests listed in #5070 and
tests/journeys/test_render_drafts.py::test_executable_revision_does_not_restore_a_new_draft_generationpass locally on this head (29 passed acrosstest_revisions.pyand the two named tests). Before the change, the composer case failed on main after its 120 s timeout.Closes #5070 — automated triage