Checking Accessibility
Find out how we can use Axe to check and test accessibility.
We'll cover the following
Now that we have Axe setup, let’s see how we can check for accessibility issues inside our test cases.
Using the checkA11y
command
After injecting Axe into one of our test spec files, we can check for violations using the cy.checkA11y
command. Let’s add the following in front of the cookie policy test case:
Get hands-on with 1200+ tech skills courses.