浏览代码

Merge branch 'main' into background-tasks

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

+ 1 - 1
tests/conftest.py

@@ -30,7 +30,7 @@ def capabilities(capabilities: Dict) -> Dict:
 
 @pytest.fixture
 def selenium(selenium: webdriver.Chrome) -> webdriver.Chrome:
-    selenium.implicitly_wait(0.5)
+    selenium.implicitly_wait(2)
     selenium.set_page_load_timeout(2)
     return selenium
 

+ 2 - 0
tests/screen.py

@@ -85,7 +85,9 @@ class Screen:
     def should_not_contain(self, text: str) -> None:
         assert self.selenium.title != text
         with pytest.raises(AssertionError):
+            self.selenium.implicitly_wait(0.5)
             self.find(text)
+            self.selenium.implicitly_wait(2)
 
     def click(self, target_text: str) -> WebElement:
         element = self.find(target_text)