tests/e2e: fix URLs, use self.login()

This commit is contained in:
Jens Langhammer
2021-02-27 18:48:41 +01:00
parent 402afa1e85
commit 380786bfde
7 changed files with 16 additions and 52 deletions

View File

@ -133,7 +133,7 @@ class TestSourceSAML(SeleniumTestCase):
self.driver.find_element(By.ID, "password").send_keys(Keys.ENTER)
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.wait_for_url(self.shell_url("/library"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page
@ -184,7 +184,7 @@ class TestSourceSAML(SeleniumTestCase):
self.driver.find_element(By.ID, "password").send_keys(Keys.ENTER)
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.wait_for_url(self.shell_url("/library"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page
@ -233,7 +233,7 @@ class TestSourceSAML(SeleniumTestCase):
self.driver.find_element(By.ID, "password").send_keys(Keys.ENTER)
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.wait_for_url(self.shell_url("/library"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page