e2e: add more safety checks

This commit is contained in:
Jens Langhammer 2020-06-21 13:40:53 +02:00
parent 6643cce841
commit 5c49cda884
1 changed files with 2 additions and 0 deletions

View File

@ -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)