Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add a11y tests #1384

Merged
merged 2 commits into from
May 16, 2024
Merged

test: add a11y tests #1384

merged 2 commits into from
May 16, 2024

Conversation

mxschmitt
Copy link
Member

Motivation: As per Microsoft Accessibility Standards we need to setup automation for running a11y tests on our website. Starting with / and /intro for now. They don't provide a GitHub Actions integration so we need to use Azure Pipelines in order to report the results back to their platform.

Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-forest-0a29f6210-1384.centralus.azurestaticapps.net

playwright.config.ts Outdated Show resolved Hide resolved
tests/a11y.spec.ts Outdated Show resolved Hide resolved
.azure-pipelines/publish.yml Outdated Show resolved Hide resolved
tests/a11y.spec.ts Outdated Show resolved Hide resolved
// to a file that we'll be publishing from a CI build step in azure-pipelines.yml
const sarifResults = convertAxeToSarif(axeResults);

const sarifResultFile = test.info().outputPath(sarifFileName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems strange to output to test-results. Perhaps we should at least attach it? Although, as long as it works for accessibility insights integration...

Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-forest-0a29f6210-1384.centralus.azurestaticapps.net

1 similar comment
Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-forest-0a29f6210-1384.centralus.azurestaticapps.net

@mxschmitt mxschmitt merged commit 7856785 into main May 16, 2024
6 checks passed
@mxschmitt mxschmitt deleted the a11y-reporting branch May 16, 2024 16:48
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.

None yet

2 participants