Skip to content

Conversation

@bhansell1
Copy link
Contributor

@bhansell1 bhansell1 commented Oct 30, 2025

Description

Adds accessibility tests fro the routing pages to Playwright. Following the suggested approach outlined here.

The AxeBuilder .withTags is an inclusive list which is why we go for WCAG2A, WCAG2AA and WCAGAAA.

One major change from pa11y-ci is that we're now tetsing against the full suite of WCAG2AAA rules expect for colour contrast. The reason for this is because I wanted to replicate the AAA rules from PRINCIPLE_1_3_1_AAA. If we find the rule too restrictive then we can remove it.

Context

We've been encountering issues with Pa11y-ci and tests timingout due to resource limit.

This can be seen both locally and in CI. We've attempted alternative solutions to mitigate the issue, but they're going to push the issue further down the line when we eventually add more routes to test.

We've decieded that the best approach would be to leave the current accessibility tests as they are and use Playwright for the new routing pages. With the plan to migrate the existing pa11y-ci tests over.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@bhansell1 bhansell1 marked this pull request as ready for review November 3, 2025 17:42
@bhansell1 bhansell1 requested review from a team as code owners November 3, 2025 17:42
@bhansell1 bhansell1 changed the title CCM-12666: WIP - playwright accessibility tests CCM-12666: playwright accessibility tests Nov 11, 2025
@bhansell1 bhansell1 merged commit 5235568 into main Nov 12, 2025
47 checks passed
@bhansell1 bhansell1 deleted the feature/CCM-12666_playwright-accessibility branch November 12, 2025 14:29
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.

4 participants