This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/tests/e2e/test_flows_login.py

27 lines
889 B
Python
Raw Normal View History

2020-05-28 22:45:56 +00:00
"""test default login flow"""
2020-09-11 21:21:11 +00:00
from sys import platform
from unittest.case import skipUnless
from tests.e2e.utils import USER, SeleniumTestCase, apply_migration, retry
2020-05-28 22:45:56 +00:00
2020-09-11 21:21:11 +00:00
@skipUnless(platform.startswith("linux"), "requires local docker")
class TestFlowsLogin(SeleniumTestCase):
2020-05-28 22:45:56 +00:00
"""test default login flow"""
@retry()
@apply_migration("authentik_core", "0002_auto_20200523_1133_squashed_0011_provider_name_temp")
@apply_migration("authentik_flows", "0008_default_flows")
@apply_migration("authentik_flows", "0011_flow_title")
2020-05-28 22:45:56 +00:00
def test_login(self):
"""test default login flow"""
self.driver.get(
self.url(
"authentik_core:if-flow",
flow_slug="default-authentication-flow",
)
)
2021-02-27 17:48:41 +00:00
self.login()
2021-09-16 15:30:16 +00:00
self.wait_for_url(self.if_user_url("/library"))
2020-11-23 13:24:42 +00:00
self.assert_user(USER())