From 3eb2cda37d5229eee1a3e8669c97aadf35d8a05d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 21 Jun 2020 12:59:18 +0200 Subject: [PATCH] e2e: add wait for codemirror --- e2e/test_enroll_2_step.py | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/test_enroll_2_step.py b/e2e/test_enroll_2_step.py index 19cad0eb8..88d996eb6 100644 --- a/e2e/test_enroll_2_step.py +++ b/e2e/test_enroll_2_step.py @@ -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']"