Skip to content

Commit 1c6fe43

Browse files
committed
Tweak test to wait for attached, not visible
1 parent bddc027 commit 1c6fe43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_web/test_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def test_subcomponent_notation_as_str_attrs(display: DisplayFixture):
320320

321321
await display.show(lambda: content)
322322

323-
parent = await display.page.wait_for_selector("#the-parent", state="visible")
323+
parent = await display.page.wait_for_selector("#the-parent", state="attached")
324324
input_group_text = await parent.query_selector_all(".input-group-text")
325325
form_control = await parent.query_selector_all(".form-control")
326326
form_label = await parent.query_selector_all(".form-label")
@@ -377,7 +377,7 @@ async def test_subcomponent_notation_as_obj_attrs(display: DisplayFixture):
377377

378378
await display.show(lambda: content)
379379

380-
parent = await display.page.wait_for_selector("#the-parent", state="visible")
380+
parent = await display.page.wait_for_selector("#the-parent", state="attached")
381381
input_group_text = await parent.query_selector_all(".input-group-text")
382382
form_control = await parent.query_selector_all(".form-control")
383383
form_label = await parent.query_selector_all(".form-label")

0 commit comments

Comments
 (0)