We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69dc3bd commit b7f89a1Copy full SHA for b7f89a1
tests/async/test_page_aria_snapshot.py
@@ -91,3 +91,14 @@ async def test_should_snapshot_complex(page: Page) -> None:
91
- link "link"
92
""",
93
)
94
+
95
96
+async def test_should_snapshot_with_ref(page: Page) -> None:
97
+ await page.set_content('<ul><li><a href="about:blank">link</a></li></ul>')
98
+ expected = """
99
+ - list [ref=s1e3]:
100
+ - listitem [ref=s1e4]:
101
+ - link "link" [ref=s1e5]:
102
+ - /url: about:blank
103
+ """
104
+ assert await page.locator("body").aria_snapshot(ref=True) == _unshift(expected)
0 commit comments