Skip to content

Commit

Permalink
try to fix flaky pytest with longer implicit wait
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed May 31, 2024
1 parent b49fd6e commit 92a0cf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_interactive_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def test_loaded_event(screen: Screen):
ui.button('Change Source', on_click=lambda: ii.set_source(URL_PATH2))

screen.open('/')
screen.wait_for(lambda: len(sources) == 1)
with screen.implicitly_wait(10.0):
screen.wait_for(lambda: len(sources) == 1)
screen.click('Change Source')
screen.wait_for(lambda: len(sources) == 2)
assert sources[1].endswith(URL_PATH2)
Expand Down

0 comments on commit 92a0cf0

Please sign in to comment.