Browse Source

try to improve flaky auto-context test (again)

Falko Schindler 2 years ago
parent
commit
2ea81ba168
1 changed files with 1 additions and 2 deletions
  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)
         await asyncio.sleep(0.1)
         ui.label('B')
         ui.label('B')
 
 
-    ui.label('ready')
     with ui.card() as cardA:
     with ui.card() as cardA:
         ui.timer(1.0, add_a, once=True)
         ui.timer(1.0, add_a, once=True)
     with ui.card() as cardB:
     with ui.card() as cardB:
         ui.timer(1.1, add_b, once=True)
         ui.timer(1.1, add_b, once=True)
 
 
     screen.open('/')
     screen.open('/')
-    screen.wait_for('ready')
+    screen.wait(2.0)
     screen.should_contain('A')
     screen.should_contain('A')
     screen.should_contain('B')
     screen.should_contain('B')
     cA = screen.selenium.find_element(By.ID, cardA.id)
     cA = screen.selenium.find_element(By.ID, cardA.id)