Repository navigation
Switch a11y tests to private storefront and single set of snapshots - #3416
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Which instance are snapshots created on? Some of the violations are gone which look strange to me. We know there are some violations that can't be fixed due to the fact it comes from Chakra UI. |
| "helpUrl": "https://dequeuniversity.com/rules/axe/4.10/aria-allowed-attr?application=playwright", | ||
| "nodes": [ | ||
| { | ||
| "html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-...\">", |
There was a problem hiding this comment.
This one can't never be fixed, it requires the change from Chakra UI component which we have no control off, I am wondering why it is not detected
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah. Agreed. It is still a part of the snapshots as known violation.
There was a problem hiding this comment.
oh i see, sorry I did not realize we are having 3 snapshot batches. Makes sense!
|
@shethj Dumb question, using the same private setup is a good start, but may not be enough. |
After this PR is merged the setups will be identical. Both using the same instance, same site, same SLAS Client. |

Description
We run a11y tests with E2E on per-pr as well as nightly workflows. The current setup was split up between running a11y on public client storefront for nightly and private client for per-pr workflows.
This caused storefront setups with different storefrontdata and required different sets of snapshots.
A snapshot for a11y is basically a set of known violations for a storefront.
The issue now is whenever a PR updates snapshots (removes violations because they fixed something), we need to sync snapshots on the other workflow.
To avoid this, a better idea is to run both per-pr and nightly workflow against a private client setup so the storefront setup is the same and we can use 1 set of snapshots and avoid having to maintain a sync between the two.
This PR updates tests, workflows and playwright config to run against a single set of snapshots.
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization