Skip to content

test: run the corpus gate's axe check from the top of the page's scroller - #6966

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6744-axe-scroll
Nov 24, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6744-axe-scroll

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

test_page_fixture_renders[github-discoveries] fails its axe pass only when the earlier journeys on the shared page leave the first card's avatar just below the sticky feed header. Axe counts that avatar as a target obscured to 34×3 px. It then fails the 23 px heading link beside it on target-size, because the avatar's sliver is now the link's nearest neighbour. Where the scroll ends up depends on the earlier passes' timing, so the finding came and went: 11 of 18 copies on the macOS runner (run 45018312974), and once on Linux in scheduled run 45014446027.

axe_findings now puts the page's reading scroller at its top before reading. At that position no sticky element covers any content. This keeps #6695's intent, an axe reading of every corpus page in both schemes, and makes it independent of where the earlier journeys left the scroll.

Verification:

  • Locally I forced the scroll that CI hit, with the avatar 4 px below the header. Before the change, the test failed with the two target-size nodes, and the heading measured 596.1×23 px, the same as the Linux CI reading. With the change and the same forced scroll, it passes.
  • test_page_fixture_renders passes for github-discoveries, rust-sort and pr-walkthrough.
  • A flake dispatch on the macOS runner passed all 54 copies on this head (run 45342899769). On main, 11 of 18 copies had failed.

#6744's other tests are untouched: the shift-watch overshoot, the application_boundary[Feed] margin-marker teardown, the Firefox comment marks, and reading_place (#6303).

Refs #6744 — automated triage

…oller

axe_findings ran wherever the earlier journeys in test_page_fixture_renders
left the scroll. On github-discoveries that could leave the first card's
avatar a few pixels below the sticky feed header, which axe counts as a
target obscured to 34x3 px, and it then fails the 23 px heading link beside
it on target-size. The page's targets pass with the card in view, so the
finding measured the earlier journeys' timing, not the page. Axe now reads
the page with its reading scroller at the top, keeping #6695's intent of
reading every page in both schemes.

Refs #6744
@leaf-agent
leaf-agent merged commit c07bd93 into main Nov 24, 2026
11 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6744-axe-scroll branch November 24, 2026 07:01
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