e2e: add more failsafe

This commit is contained in:
Jens Langhammer
2020-06-21 18:36:43 +02:00
parent 1b3c0adf75
commit 887163c45c
2 changed files with 5 additions and 1 deletions

View File

@ -286,7 +286,7 @@ class TestEnroll2Step(SeleniumTestCase):
self.driver.get(self.live_server_url)
self.setup_test_enroll_2_step()
self.wait.until(
ec.presence_of_element_located((By.CSS_SELECTOR, "[role=enroll]"))
ec.presence_of_element_located(By.CSS_SELECTOR, "[role=enroll]")
)
self.driver.find_element(By.CSS_SELECTOR, "[role=enroll]").click()