Skip to content

Audit only visible gallery frames for accessibility - #1596

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-37014203218-axe
Oct 2, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-37014203218-axe

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The full main CI run failed the gallery WCAG test because its Axe helper audited the gallery's hidden, unopened about:blank iframe. That empty document has no title or language, although it is outside the visible page. The helper now audits the main document and frames whose full ancestor chain is visible, retaining coverage for frames a reader can reach.

The unchanged focused WCAG test failed on main and passes after this change: uv run pytest -q -n0 tests/test_render_controls.py::test_the_feature_gallery_has_no_serious_wcag_a_or_aa_violations.

Refs #1592. The same run's startup settlement failure has a separate test arrangement fix in progress.

leaf-agent added a commit that referenced this pull request Oct 2, 2026
The full [main CI
run](https://github.com/max-sixty/leaf/actions/runs/37014203218) stalled
in `test_opt_in_page_interface_joins_initial_widget_settlement` after
the test released its first held `/api/state` request. The gallery can
issue another parent state read during startup, and the route kept that
read held forever. The test now releases every request it held and lets
later requests through, so its original upgrade, visibility, and
connecting-status assertions still run through final readiness.

The focused test failed on main at the `arrived` readiness stage and
passes after this change: `uv run pytest -q -n0
tests/test_render_startup.py::test_opt_in_page_interface_joins_initial_widget_settlement`.

Refs #1592. The run's separate gallery WCAG test arrangement is
addressed in #1596.

Co-authored-by: leaf-agent <[email protected]>
@leaf-agent
leaf-agent merged commit d663345 into main Oct 2, 2026
3 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-37014203218-axe branch October 2, 2026 17:09
leaf-agent added a commit that referenced this pull request Oct 2, 2026
The [full Linux main
run](https://github.com/max-sixty/leaf/actions/runs/37029273867) found
nine browser checks that still expected the comment and thread geometry
from before #1587. The tests now read the carried frame, the shared
transcript inset, the writer's visible field, and clearance from nearby
controls. The compact send case checks its visible thread and
typography; `test_send_grows_thread_around_the_words` continues to check
word position through the handoff animation. No runtime code changes.

All nine affected cases failed on the run's head and pass locally on
this branch. A focused animated send-placement case and pinned
pre-commit checks also pass. The run's gallery accessibility and startup
failures were addressed separately by #1596 and #1597.

Refs #1592.

---------

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 2, 2026
The gallery accessibility fix excluded visually hidden frames, but still
audited an aria-hidden frame as an independent document. That produced
button-name, document-title, and language findings for content outside
the accessibility tree.

Install axe in child documents and let its standard page-level traversal
own frame exclusion and nested auditing. A positive-control case keeps
unnamed buttons in hidden and aria-hidden frames, catches two unnamed
buttons in exposed child and grandchild documents, verifies the parent
frame-name failure, then verifies the clean result.

Validation: the positive control fails with the helper landed in #1596
and passes with this change. The local gate passes 1,638 Python tests,
192 runtime tests, 74 browser framework tests, and 66 Worker tests; type
checks, committed bundles, and pre-commit checks pass. The gallery and
chrome accessibility audits pass after integrating latest main. No
runtime changes or new expected-failure markers.

Ref #1592.

> _This was written by Codex on behalf of max-sixty_
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