Skip to content

Commit 036b307

Browse files
committed
add **dict for data-attrs test
1 parent ebf484e commit 036b307

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,13 @@ def SomeComponent():
142142
id="title",
143143
data_some_thing="some data",
144144
aria_description="some title",
145+
**{"data-another-thing": "more data"},
145146
)
146147

147148
await display.show(SomeComponent)
148149

149150
title = await display.page.wait_for_selector("#title")
150151

151152
assert await title.get_attribute("data-some-thing") == "some data"
153+
assert await title.get_attribute("data-another-thing") == "more data"
152154
assert await title.get_attribute("aria-description") == "some title"

0 commit comments

Comments
 (0)