e2e: add more failsafe

This commit is contained in:
Jens Langhammer 2020-06-21 19:03:13 +02:00
parent ed4daa64fe
commit fd0f0c65e9
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ class TestProviderOIDC(SeleniumTestCase):
By.XPATH, "/html/body/div[2]/div/main/div/form/div[2]/p[1]" By.XPATH, "/html/body/div[2]/div/main/div/form/div[2]/p[1]"
).text, ).text,
) )
self.wait.until(
ec.presence_of_element_located((By.CSS_SELECTOR, "[type=submit]"))
)
self.driver.find_element(By.CSS_SELECTOR, "[type=submit]").click() self.driver.find_element(By.CSS_SELECTOR, "[type=submit]").click()
self.wait.until( self.wait.until(