浏览代码

add waits to reduce flakyness

Rodja Trappe 2 年之前
父节点
当前提交
17230d2523
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tests/test_time.py

+ 3 - 3
tests/test_time.py

@@ -9,12 +9,12 @@ def test_time(screen: Screen):
 
     screen.open('/')
     screen.should_contain('01:23')
-
+    screen.wait(0.2)
     screen.click('8')
     screen.should_contain('08:23')
-
+    screen.wait(0.2)
     screen.click('45')
     screen.should_contain('08:45')
-
+    screen.wait(0.2)
     screen.click('PM')
     screen.should_contain('20:45')