How to Prevent Accessibility Regressions in CI/CD
A customer submits an order with a missing delivery address. The checkout form displays an error, but a recent update has moved keyboard focus to the top of the page. The customer now has to navigate the whole form to find out what went wrong. A scan of the checkout page on initial load won't tell you that the error recovery experience has changed.
An accessibility regression is a change that makes something harder or impossible to use when it previously worked. The purpose of an accessibility CI/CD workflow is to catch that change while the team can still fix it, ideally in the pull request that introduced it. Start with a task people depend on, define what they must be able to do, and use that expectation to decide what to test and what should stop a release.
1. Establish a baseline for a critical user journey

Choose a journey with a clear endpoint: signing in, saving consent preferences, or placing an order. Map the steps from entry to completion, including what happens when someone makes a mistake. A list of URLs is not enough. An empty form, a form showing validation errors, and a confirmation message may all share one URL but present different accessibility risks.
For each important state, record the user action, the expected result, and how a reviewer can verify it. For example: “After a shopper submits an incomplete address, they can identify the missing field, reach it with the keyboard, correct it, and continue without losing their other entries.” That gives engineering a testable requirement and gives a release manager a meaningful description of what would be lost.
Test the current release before enforcing a gate. Record known barriers separately, with an owner and a remediation date. A baseline describes what exists; it does not declare the current experience acceptable. If a known issue already prevents checkout, it needs a release decision of its own, not an indefinite exemption because it predates the pipeline.
2. Put the right checks in the pull request
Use quick checks for feedback close to the edit, then use browser tests where the result depends on rendering or interaction. A source check can flag a missing label association. It cannot tell you whether a customer can recover from a failed submission. For that, the test needs to open the form, enter data, submit it, and inspect the resulting state.
- For a component change: Render the affected variants. If an icon button has a visible label in one layout but not another, check its accessible name in both.
- For a shared style change: Inspect representative consumers of the style, including focus and error states. A change to a focus indicator deserves review beyond the component where the edit was made.
- For a journey change: Exercise the actual sequence in a browser. Run automated accessibility checks after the relevant panel, message, or dialog appears, not just after navigation.
Consider a pull request that replaces the “Edit delivery address” button with an icon. A useful test finds the control by its button role and expected accessible name, activates it with the keyboard, and verifies that focus enters the address editor. On closing the editor, it verifies that focus returns to the edit control. A test that clicks an element by its CSS class and checks only that the editor appeared could stay green even if the button lost its name or keyboard behavior.
Attach the failed step and expected behavior to the pull request. “After closing the address editor, focus landed on the document body instead of Edit delivery address” gives the author somewhere to start. A score alone does not.
3. Define what blocks a merge or release

Agree on the gate before a deadline puts it under pressure. Base the decision on the impact on the user, the importance of the task, and the reliability of the finding. Avoid gating solely on the total number of violations: fixing one low-impact issue and introducing an unnamed checkout button could leave the count unchanged.
- Block: A repeatable test shows that a previously working critical task is no longer possible, or a change breaks an agreed accessibility requirement for a shared component.
- Require review: The result is inconsistent, the impact is unclear, or the change affects behavior that automated checks cannot judge. Assign a reviewer and specify what they need to verify before release.
- Track separately: A finding matches a documented baseline issue in the same component and state. Keep its remediation ticket open. If the same barrier now appears in another journey, assess that new impact rather than suppressing it automatically.
Distinguish a failed accessibility assertion from a test that never reached the intended screen. If a checkout fixture fails to load, the result is “not tested,” not “passed.” Restore the fixture or verify the affected path manually before making the release decision. If an exception is necessary, record who approved it, the user impact, any available workaround, and when the exception expires.
4. Reserve manual testing for questions that need judgment
Passing automated checks does not establish WCAG 2.2 conformance. A field can have a programmatic label that is technically present but unhelpful. A dialog can receive focus correctly yet open with so little context that a screen reader user cannot tell what they are editing. Use targeted manual checks for changed interactions rather than asking reviewers to retest the entire product on every merge.
For the address editor, give the reviewer a task rather than a script of expected keystrokes: “Change the delivery address, correct an invalid postal code, and return to the order summary.” Ask them to try it with keyboard-only navigation and with a screen reader. Can they tell where they are, what failed, and whether the correction was saved? Record the browser, assistive technology, build, and observed result so another reviewer can verify the fix.
Keep the evidence tied to its scope. “Address correction verified on this build in this test environment” is useful release evidence. “Checkout is compliant” claims more than that test demonstrates.
5. Monitor production and feed findings back into CI

Deployment is not the last point at which the experience can change. A content edit, consent banner configuration, or feature flag can alter a journey without touching the component covered by a pull request. Monitor important production pages, and identify which states require a separate interaction test or manual review. Monitoring the sign-in page, for example, is not the same as testing the account area behind it.
When a production finding arrives, verify the affected state and trace it to the responsible team. Suppose a newly published consent dialog obscures the checkout controls for keyboard users. Reproduce the first-visit experience in a test environment, fix the dialog, and add a first-visit checkout test. Then verify the deployed fix with consent preferences reset. Testing only with an account that has already dismissed the dialog would miss the original problem.
Corpowid provides AI accessibility auditing and continuous accessibility monitoring for websites and mobile apps, with findings available in a single dashboard. When evaluating it alongside your CI/CD checks, use one real journey: compare what the audit identifies with the states your browser tests cover, then decide who will investigate a production finding and verify its resolution.
A practical first rollout
Start with one release team, one critical journey, and one explicit blocking condition. For checkout, that might mean a shopper must be able to open the address editor, correct an error, and resume the order using only the keyboard. Run the check on a known working build and confirm that it fails when the expected behavior is absent. Only then make it a merge requirement.
At the next release review, ask three questions: Which barriers escaped into production? Which failures held up a release without identifying a real barrier? Which important states did nobody test? Use the answers to expand coverage. The goal is not more checks on every commit; it is a dependable signal when a change puts a user's task at risk.
Frequently asked questions
Should every accessibility test run on every pull request?
No. Run fast checks on changed components and targeted browser tests for affected journeys. Reserve broader coverage for shared changes, scheduled runs, or release candidates. Make the selection rules explicit so a shared dialog change does not skip checkout testing just because no checkout file was edited.
How should we compare results when page content changes?
Compare findings by user task, component, state, and failed requirement rather than raw counts or unstable element positions. If a redesign removes an old finding, confirm the task still works. Removing an inaccessible button is not a fix if it also removes the only way to complete the task.
What accessibility evidence should we keep for a release?
Keep the build identifier, journeys and states tested, automated results, relevant manual observations, and decisions on unresolved findings. Include the owner and review date for any exception. This lets a compliance reviewer distinguish what was verified from what remains unknown.