Skip to content

Commit 4ac9322

Browse files
committed
fix flaky test
the auto-reconnect test was flaky because we were shutting down the server before we could be sure the element had in fact been displayed
1 parent 975b54a commit 4ac9322

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_client/test_app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def OldComponent():
2121
with mount_point:
2222
mount_point.mount(OldComponent)
2323
driver.get(mount_point.url())
24+
# ensure the element is displayed before stopping the server
25+
driver.find_element_by_id("old-component")
2426

2527
# the server is disconnected but the last view state is still shown
2628
driver.find_element_by_id("old-component")

0 commit comments

Comments
 (0)