Commit 51afe62
authored
Fix accessibility command for Playwright 1.57+ (#185)
* Fix accessibility command for Playwright 1.57+
Playwright 1.57.0 removed `page.accessibility.snapshot()` after 3 years
of deprecation. This updates the accessibility command to use the new
`locator.aria_snapshot()` API instead.
Note: The output format has changed due to the new API returning a
different accessibility tree structure (using semantic landmark roles
like banner, main, contentinfo, navigation).
* -3.9, +3.14
* Enable accessibilty tests again
Refs #186 (comment)
---------
https://gistpreview.github.io/?f8ce6bdb7ee606c6eac20a9b1357c7e1/index.html1 parent 94c5ab7 commit 51afe62
2 files changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
| 708 | + | |
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments