Browse Source

Merge branch 'main' into background-tasks

Rodja Trappe 2 years ago
parent
commit
1dc329fd39
2 changed files with 3 additions and 1 deletions
  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)