Преглед изворни кода

try to improve flaky auto-context test (again)

Falko Schindler пре 2 година
родитељ
комит
2ea81ba168
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      tests/test_auto_context.py

+ 1 - 2
tests/test_auto_context.py

@@ -34,14 +34,13 @@ def test_adding_elements_with_async_await(screen: Screen):
         await asyncio.sleep(0.1)
         ui.label('B')
 
-    ui.label('ready')
     with ui.card() as cardA:
         ui.timer(1.0, add_a, once=True)
     with ui.card() as cardB:
         ui.timer(1.1, add_b, once=True)
 
     screen.open('/')
-    screen.wait_for('ready')
+    screen.wait(2.0)
     screen.should_contain('A')
     screen.should_contain('B')
     cA = screen.selenium.find_element(By.ID, cardA.id)