Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rmorshea committed May 16, 2021
1 parent 559e6c7 commit 37f75a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_client/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def OldComponent():
with mount_point:
mount_point.mount(OldComponent)
driver.get(mount_point.url())
# ensure the element is displayed before stopping the server
driver.find_element_by_id("old-component")

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

0 comments on commit 37f75a0

Please sign in to comment.