add authentik_user_page
This commit is contained in:
parent
2394d2fd9b
commit
641d89438b
1 changed files with 10 additions and 1 deletions
|
|
@ -21,7 +21,6 @@ def admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
|
|||
@pytest.fixture
|
||||
def authentik_admin_page(admin_context: BrowserContext, DIR: DirManager) -> Page:
|
||||
page = admin_context.new_page()
|
||||
page.pause()
|
||||
authentik_env_file = DIR.ENV_FILES / "authentik"
|
||||
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
|
||||
url = "https://" + authentik_config["DOMAIN"]
|
||||
|
|
@ -36,3 +35,13 @@ def user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
|
|||
context.add_cookies(storage_state["cookies"])
|
||||
context.set_default_timeout(TIMEOUT)
|
||||
return context
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def authentik_user_page(user_context: BrowserContext, DIR: DirManager) -> Page:
|
||||
page = user_context.new_page()
|
||||
authentik_env_file = DIR.ENV_FILES / "authentik"
|
||||
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
|
||||
url = "https://" + authentik_config["DOMAIN"]
|
||||
page.goto(url)
|
||||
return page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue