e2e: fix flow setup stage test not finding link

This commit is contained in:
Jens Langhammer 2020-07-23 11:04:59 +02:00
parent 3c12cf96a9
commit 3ffed279d7
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class TestFlowsStageSetup(SeleniumTestCase):
self.driver.find_element(By.ID, "id_password").send_keys(Keys.ENTER)
self.driver.find_element(By.CSS_SELECTOR, ".pf-c-page__header").click()
self.driver.find_element(By.XPATH, "//a[contains(@href, '/-/user/')]").click()
self.wait_for_url(self.url("passbook_core:user-settings"))
self.driver.find_element(By.LINK_TEXT, "Change password").click()
self.driver.find_element(By.ID, "id_password").send_keys(new_password)
self.driver.find_element(By.ID, "id_password_repeat").click()