-
Notifications
You must be signed in to change notification settings - Fork 389
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
chore: Add Access Continuum to e2e tests #19140
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merge Checks Failed
|
Merge Checks Failed
|
Merge Checks Failed
|
Merge Checks Failed
|
Merge Checks Failed
|
…into feature/CXSPA-6523
Merge Checks Failed
|
Merge Checks Failed
|
Merge Checks Failed
|
…into feature/CXSPA-6523
Merge Checks Failed
|
Merge Checks Failed
|
rmch91
previously approved these changes
Sep 18, 2024
Merge Checks Failed
|
rmch91
approved these changes
Sep 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: CXSPA-6523
Using Accessibility Continuum with E2E Testing
Overview
Accessibility Continuum is a tool that can identify accessibility issues on a given page. We are using this tool in conjunction with Cypress for identifying issues during e2e tests.
Setup (local environment)
Prerequisites
Required (download Access Continuum package)
cd projects/storefrontapp-e2e-cypress
).export CONTINUUM_REGISTRY_TOKEN="my-token"
in the terminal to set the token where "my-token" should be replaced by the token you acquired.npm install
to install the Access Continuum package.Optional (setup AMP Reports)
Note: If you do not set the key, this will not impact the test results.
AMP_API_TOKEN
as an environment variable to the cypress default config (projects/storefrontapp-e2e-cypress/cypress.config.ts
).AMP_ASSET_ID
andAMP_ORG_ID
as environment variables in the same config. Steps on how to acquire these can also be found here.Adding Access Continuum to tests
Note: You can also check
projects/storefrontapp-e2e-cypress/cypress/e2e/accessibility/continuum.example-e2e.cy.ts
to see how to do this.