You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: