Commit 1d89888
fix(regression-test): decouple a11y checks from screenshot capture
An axe violation throws in `cy.checkA11y`, which failed the Cypress test and
triggered two problems in the visual regression pipeline: the deterministic
afterEach screenshot was skipped (the page got a blank/missing baseline), and
Cypress' automatic failure screenshot (the error overlay) leaked into the diff
as a spurious "new" image because it has a different filename.
Always take the afterEach screenshot even when the test failed, and disable
Cypress' failure screenshots. The a11y assertion still fails the run as a gate,
but the visual baselines are now clean and complete regardless of a11y state.
This bug was latent from the start; it only surfaced once a change introduced an
actual a11y violation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bf4f72a commit 1d89888
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments