From 5c49cda884e88c01174733e7e642edc2c4e55c54 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 21 Jun 2020 13:40:53 +0200 Subject: [PATCH] e2e: add more safety checks --- e2e/test_enroll_2_step.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/test_enroll_2_step.py b/e2e/test_enroll_2_step.py index 88d996eb6..712bc39f2 100644 --- a/e2e/test_enroll_2_step.py +++ b/e2e/test_enroll_2_step.py @@ -289,7 +289,9 @@ class TestEnroll2Step(SeleniumTestCase): self.driver.get(self.live_server_url) self.setup_test_enroll_2_step() self.driver.get(self.live_server_url) + self.wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, "[role=enroll]"))) self.driver.find_element(By.CSS_SELECTOR, "[role=enroll]").click() + self.driver.find_element(By.ID, "id_username").send_keys("foo") self.driver.find_element(By.ID, "id_password").send_keys(USER().username) self.driver.find_element(By.ID, "id_password_repeat").send_keys(USER().username)