Skip to content

Commit 97a715c

Browse files
committed
Add test for class name
1 parent a78a5b1 commit 97a715c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_core.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,14 @@ def sample():
251251
lnk = await display.page.wait_for_selector("#root")
252252
await lnk.click()
253253
await display.page.wait_for_selector("#success")
254+
255+
256+
async def test_link_class_name(display: DisplayFixture):
257+
@component
258+
def sample():
259+
return browser_router(route("/", link("Root", to="/a", id="root", className="class1")))
260+
261+
await display.show(sample)
262+
263+
lnk = await display.page.wait_for_selector("#root")
264+
assert "class1" in await lnk.get_attribute("class")

0 commit comments

Comments
 (0)