فهرست منبع

longer timeouts

Rodja Trappe 2 سال پیش
والد
کامیت
19182ecf73
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      tests/conftest.py
  2. 1 1
      tests/test_auto_context.py

+ 2 - 2
tests/conftest.py

@@ -35,8 +35,8 @@ def capabilities(capabilities):
 
 @pytest.fixture
 def selenium(selenium: webdriver.Chrome) -> webdriver.Chrome:
-    selenium.implicitly_wait(0.1)
-    selenium.set_page_load_timeout(1)
+    selenium.implicitly_wait(0.5)
+    selenium.set_page_load_timeout(2)
     return selenium
 
 

+ 1 - 1
tests/test_auto_context.py

@@ -38,7 +38,7 @@ def test_adding_elements_with_async_await(screen: Screen):
         ui.timer(1.1, add_b, once=True)
 
     screen.open('/')
-    for i in range(20):
+    for i in range(40):
         if 'card\n  A\ncard\n  B' in screen.render_content():
             return
         screen.wait(0.1)