Repository navigation
Make the margin-repaint and revendoring tests check what they claim, share one accept-all helper, and drop an old-record test - #6362
Merged
Conversation
…ttened registry key, one accept-all helper The margin card focus test dispatched `lf-actions`, which nothing listens for; it now lands an agent reply in the open card's thread, waits for the card to draw it, and asserts focus stays on Resolve. It protects that a card repaint leaves the user on the control they reached; rebuilding the settlement button on each render fails it. The revendoring test read `verbs` under a `state` key no registry entry has since facts were flattened; it now reads the entry itself, protecting that the overlay dropping the task's verbs takes effect after the serialized report. Keeping `verbs` in the overlay fails it. The render-widgets journey uses the shared `expect_accept_all` from browser.widgets instead of its own copy, and drops a duplicate mid-file `import pytest` and a marker the module's `pytestmark` already applies. The render-gate journey's docstring names the `relativeReplays` probe in place of the nonexistent `RELATIVE_REPLAYS`. Deletes test_an_action_an_earlier_runtime_logged_is_left_out_of_the_fold, which protected only an earlier runtime's record shape (AGENTS.md "Stage"); a mismatched state operation folding as absent is held by the `slot` case of test_revised_state_definitions_keep_original_history_and_admit_new_typed_state.
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.
Five findings from the nightly sweep, each a test that could not fail or that repeated another.
test_a_card_repaint_keeps_the_user_on_the_control_they_reached(tests/browser/threads/test_resolving.py) dispatchedlf-actions, an event nothing in browser/, packages/ or src/ listens for, so no repaint happened and its focus check proved nothing. It now has the agent's reply land in the open margin card's thread, waits until the card shows the reply, and then asserts focus is still on Resolve and Enter resolves the thread. It protects this: a repaint of an open card leaves the user on the control they reached. As a control, making the card's render rebuild its settlement button (render(nothing, ...)before the settlement render in thread-card.js) fails it onto_be_focused.test_revendoring_serializes_with_a_worker_report_entering_the_log(tests/model/interact_contract/test_revendoring.py) checked forverbsunder astatekey that no registry entry has any more, so it always passed. It now checks the entry itself. It protects this: the overlay that dropslf-test-task's verbs takes effect once the revendor waits out the report. Keepingverbsin the overlay now fails it. PR #5981 edits other lines of this test.tests/journeys/test_render_widgets.py had its own copy of
expect_accept_all. It now uses the shared helper in tests/browser/widgets/init.py, so it checks the same Accept all row, now by count. The commit also removes a duplicateimport pytestpartway through the file, and ashifts_unsurveyedmarker the module'spytestmarkalready applies.The
test_the_render_gate_reads_widgets_in_the_page_and_in_replies_alikedocstring namedRELATIVE_REPLAYS, which exists nowhere. It now names therelativeReplaysprobe (src/leaf/render-checks/replay.js).The commit deletes
test_an_action_an_earlier_runtime_logged_is_left_out_of_the_fold(tests/model/interact_contract/test_vocabulary.py). It protected only records in an earlier runtime's payload shape, which root AGENTS.md "Stage" rules out. The current rule it also exercised, that a logged action whose state operation no longer matches its verb folds as absent andleaf page statestill reads, is held by theslotcase oftest_revised_state_definitions_keep_original_history_and_admit_new_typed_state.Ran by node id: the resolving test (passes, and fails with the control applied), the revendoring test (passes, and fails with
verbskept),test_a_decision_travels_between_tabs_and_the_log_has_the_last_word, the fivetest_revised_state_definitions_keep_original_history_and_admit_new_typed_statecases, and collection oftest_focus_reactions_keep_a_projected_data_targetunder-m shifts_unsurveyed.