new-features #5

Merged
dan merged 73 commits from wordpress-nextcloud into dev 2023-12-04 12:46:32 +01:00
Showing only changes of commit 641d89438b - Show all commits

View file

@ -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