We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a38e1 commit e673390Copy full SHA for e673390
README.md
@@ -89,9 +89,12 @@ it('passes axe', () => {
89
cy.visit('/')
90
cy.injectAxe()
91
// ...
92
- cy.get('.my-button').checkA11y() // target certain elements
93
- // OR
94
- cy.checkA11y() // check the whole document
+
+ cy.checkA11y() // checks the whole document
95
+ cy.get('#mobile-menu').checkA11y() // checks id="mobile-menu only
96
97
+ cy.wrap({ exclude: ['.not-me']}).checkA11y() // checks the whole document except class=".not-me"
98
})
99
```
100
0 commit comments