浏览代码

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)