Skip to content

Align margin label test with focus and Escape layers - #2755

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38386782299-margin
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38386782299-margin

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The margin browser journey now establishes the resting state before checking that a label is hidden, then checks each Escape layer in order. On current main, the test left Accept focused after opening reactions and expected its focus label to be hidden. It also expected one Escape to close both the reaction choices and their underlying options. Those expectations disagree with the visible focus label and the existing reaction journey's layered Escape behavior.

The exact test failed before this change and passed afterward (uv run pytest -q -n0 tests/browser/test_render_margin.py::test_one_target_has_one_primary_margin_entry_and_inline_secondary_margin_entries). This addresses one browser failure in the main CI run; the other failures have separate causes.

@leaf-agent
leaf-agent merged commit f38df83 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38386782299-margin branch October 13, 2026 14:06
leaf-agent added a commit that referenced this pull request Oct 13, 2026
A malformed package visual inventory now withholds that visual's comment
controls without stopping the rest of the page's presentation. The
strict read added in #2749 correctly prevented a whole-visual action
from surviving an invalid inventory, but its exception escaped from the
action planner before `page check --render` could report the inventory
fault. The planner now contains that exception for the affected visual;
the render gate retains its strict diagnostic.

The existing render-gate test failed on `main` with `never-upgraded` and
passes with this change, reporting the expected `visual-parts` findings.
The four startup phases pass, as do `pnpm run test:runtime` (406 tests).
The other failure in [main CI run
38399385979](https://github.com/max-sixty/leaf/actions/runs/38399385979)
was the margin label test; #2755 had already repaired it, and its exact
test passes on current `main`.

Co-authored-by: leaf-agent <[email protected]>
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.

1 participant