浏览代码

add delays to improve test stability

Rodja Trappe 1 月之前
父节点
当前提交
57fdf434ed
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/test_dialog.py

+ 2 - 0
tests/test_dialog.py

@@ -32,10 +32,12 @@ def test_await_dialog(screen: Screen):
 
     screen.open('/')
     screen.click('Open')
+    screen.wait(0.2)
     screen.click('Yes')
     screen.should_contain('Result: Yes')
 
     screen.click('Open')
+    screen.wait(0.2)
     screen.click('No')
     screen.should_contain('Result: No')