e2e: add wait for codemirror

This commit is contained in:
Jens Langhammer 2020-06-21 12:59:18 +02:00
parent 6fdaac9a7d
commit 3eb2cda37d

View file

@ -141,6 +141,7 @@ class TestEnroll2Step(SeleniumTestCase):
self.driver.find_element(By.ID, "id_name").send_keys(
"policy-enrollment-password-equals"
)
self.wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, ".CodeMirror-scroll")))
self.driver.find_element(By.CSS_SELECTOR, ".CodeMirror-scroll").click()
self.driver.find_element(By.CSS_SELECTOR, ".CodeMirror textarea").send_keys(
"return request.context['password'] == request.context['password_repeat']"