From fd0f0c65e9fb267a0476542d5254f80a2c294d69 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 21 Jun 2020 19:03:13 +0200 Subject: [PATCH] e2e: add more failsafe --- e2e/test_provider_oidc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/test_provider_oidc.py b/e2e/test_provider_oidc.py index 8e6083c63..f6c75d959 100644 --- a/e2e/test_provider_oidc.py +++ b/e2e/test_provider_oidc.py @@ -216,6 +216,9 @@ class TestProviderOIDC(SeleniumTestCase): By.XPATH, "/html/body/div[2]/div/main/div/form/div[2]/p[1]" ).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.wait.until(