fix flaky test (#1158)

This commit is contained in:
Ryan Morshead 2023-10-22 13:05:03 -06:00 committed by GitHub
parent 3faa10fbbe
commit d3959e4e39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,6 +122,7 @@ async def test_script_from_src(display: DisplayFixture):
"""
)
await poll(lambda: hasattr(incr_src_id, "current")).until_is(True)
incr_src_id.current()
run_count = await display.page.wait_for_selector("#run-count", state="attached")