2020-05-28 22:45:56 +00:00
|
|
|
"""test default login flow"""
|
2022-08-02 22:05:49 +00:00
|
|
|
from authentik.blueprints.tests import apply_blueprint
|
2022-08-01 21:05:58 +00:00
|
|
|
from tests.e2e.utils import SeleniumTestCase, retry
|
2020-05-28 22:45:56 +00:00
|
|
|
|
|
|
|
|
2020-06-29 19:39:04 +00:00
|
|
|
class TestFlowsLogin(SeleniumTestCase):
|
2020-05-28 22:45:56 +00:00
|
|
|
"""test default login flow"""
|
|
|
|
|
2020-10-20 16:42:26 +00:00
|
|
|
@retry()
|
2022-08-01 21:05:58 +00:00
|
|
|
@apply_blueprint(
|
2023-01-24 11:23:22 +00:00
|
|
|
"default/flow-default-authentication-flow.yaml",
|
|
|
|
"default/flow-default-invalidation-flow.yaml",
|
2022-08-01 21:05:58 +00:00
|
|
|
)
|
2020-05-28 22:45:56 +00:00
|
|
|
def test_login(self):
|
|
|
|
"""test default login flow"""
|
2021-03-22 12:44:17 +00:00
|
|
|
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"))
|
2021-11-23 20:30:02 +00:00
|
|
|
self.assert_user(self.user)
|