tests: fix URLs to use user-details instead of user-settings

This commit is contained in:
Jens Langhammer 2020-12-13 00:48:46 +01:00
parent 96f0d582f0
commit d4c9c667c9
3 changed files with 6 additions and 12 deletions

View File

@ -34,9 +34,3 @@ class TestOverviewViews(TestCase):
self.assertEqual(
self.client.get(reverse("authentik_core:overview")).status_code, 200
)
def test_user_settings(self):
"""Test user settings"""
self.assertEqual(
self.client.get(reverse("authentik_core:user-settings")).status_code, 200
)

View File

@ -142,7 +142,7 @@ class TestSourceOAuth2(SeleniumTestCase):
# Wait until we've logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
self.assertEqual(
self.driver.find_element(By.ID, "id_username").get_attribute("value"), "foo"
@ -224,7 +224,7 @@ class TestSourceOAuth2(SeleniumTestCase):
# Wait until we've logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
self.assertEqual(
self.driver.find_element(By.ID, "id_username").get_attribute("value"), "foo"
@ -317,7 +317,7 @@ class TestSourceOAuth1(SeleniumTestCase):
sleep(2)
# Wait until we've logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
self.assertEqual(
self.driver.find_element(By.ID, "id_username").get_attribute("value"),

View File

@ -134,7 +134,7 @@ class TestSourceSAML(SeleniumTestCase):
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page
self.assertNotEqual(
@ -185,7 +185,7 @@ class TestSourceSAML(SeleniumTestCase):
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page
self.assertNotEqual(
@ -234,7 +234,7 @@ class TestSourceSAML(SeleniumTestCase):
# Wait until we're logged in
self.wait_for_url(self.shell_url("authentik_core:overview"))
self.driver.get(self.url("authentik_core:user-settings"))
self.driver.get(self.url("authentik_core:user-details"))
# Wait until we've loaded the user info page
self.assertNotEqual(