File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
- ![ logo] ( ./docs/logo.png )
1
+ < img width = " 1313 " height = " 741 " alt = " image " src = " https://github.com/user-attachments/assets/4063015f-9efb-4814-8af5-585835560869 " /> ![ logo] ( ./docs/logo.png )
2
2
3
3
# Axe-Playwright
4
4
@@ -340,6 +340,25 @@ await checkA11y(
340
340
},
341
341
)
342
342
```
343
+
344
+ ### Accesibility Standards
345
+
346
+ To ensure your tests meet accessibility standards, configure axe-playwright with the following options:
347
+
348
+ ``` js
349
+ await checkA11y (page, ' #storybook-root' , {
350
+ detailedReport: true ,
351
+ detailedReportOptions: {
352
+ html: true ,
353
+ },
354
+ verbose: false ,
355
+ axeOptions: {
356
+ runOnly: [' wcag21aa' , ' wcag22aa' , ' best-practice' , ' EN-301-549' ]
357
+ }
358
+ }, true , ' v2' );
359
+ ```
360
+
361
+
343
362
## Before you Go
344
363
345
364
If it works for you , leave a [ Star] ( https://github.com/abhinaba-ghosh/axe-playwright ) ! :star :
You can’t perform that action at this time.
0 commit comments