Skip to content

Make the margin-repaint and revendoring tests check what they claim, share one accept-all helper, and drop an old-record test - #6362

Merged
max-sixty merged 1 commit into
mainfrom
nightly/tests-that-cannot-fail
Nov 18, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/tests-that-cannot-fail

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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) dispatched lf-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 on to_be_focused.

test_revendoring_serializes_with_a_worker_report_entering_the_log (tests/model/interact_contract/test_revendoring.py) checked for verbs under a state key that no registry entry has any more, so it always passed. It now checks the entry itself. It protects this: the overlay that drops lf-test-task's verbs takes effect once the revendor waits out the report. Keeping verbs in 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 duplicate import pytest partway through the file, and a shifts_unsurveyed marker the module's pytestmark already applies.

The test_the_render_gate_reads_widgets_in_the_page_and_in_replies_alike docstring named RELATIVE_REPLAYS, which exists nowhere. It now names the relativeReplays probe (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 and leaf page state still reads, is held by the slot case of test_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 verbs kept), test_a_decision_travels_between_tabs_and_the_log_has_the_last_word, the five test_revised_state_definitions_keep_original_history_and_admit_new_typed_state cases, and collection of test_focus_reactions_keep_a_projected_data_target under -m shifts_unsurveyed.

…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.
@leaf-agent leaf-agent changed the title Make four tests check what they claim: a real margin repaint, the flattened registry key, one accept-all helper Make the margin-repaint and revendoring tests check what they claim, share one accept-all helper, and drop an old-record test Nov 18, 2026
@max-sixty
max-sixty merged commit d5adc92 into main Nov 18, 2026
6 checks passed
@max-sixty
max-sixty deleted the nightly/tests-that-cannot-fail branch November 18, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants