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

User Story: Creating Reusable A11y Test Utilities #3

Open
csantiago132 opened this issue Oct 1, 2024 · 0 comments
Open

User Story: Creating Reusable A11y Test Utilities #3

csantiago132 opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@csantiago132
Copy link
Contributor

csantiago132 commented Oct 1, 2024

This is created to avoid repetitive code and make all tests more maintainable, these utility functions encapsulate common A11y testing patterns that could be reused by others when testing their components. This also should help in the implementation of a11y testing across components

Acceptance Criteria:

renderWithA11y: A wrapper around render from React Testing Library that returns the container for A11y testing.
runA11yAudit: Executes axe on the provided container and returns the results.
testA11y: A higher-order function that combines rendering a component and running the A11y audit, simplifying test definitions.

@csantiago132 csantiago132 self-assigned this Oct 1, 2024
@csantiago132 csantiago132 converted this from a draft issue Oct 1, 2024
@csantiago132 csantiago132 added the enhancement New feature or request label Oct 1, 2024
@csantiago132 csantiago132 moved this to Todo in HTML Forms Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant