refactor for independent test dirs #7

Merged
dan merged 49 commits from independent-test-dirs into dev 2023-12-05 21:41:46 +01:00
Showing only changes of commit e33dc95632 - Show all commits

View file

@ -31,7 +31,7 @@ def setup_admin_state(context: BrowserContext, dotenv_config: dict[str, str], DI
expect(page.locator("ak-library")).to_be_visible()
# save state
context.storage_state(path=f"{DIR.STATES}/authentik_admin_state.json")
context.storage_state(path=DIR.STATES / "authentik_admin_state.json")
def check_if_user_exists(admin_context: BrowserContext, dotenv_config: dict[str, str]):
@ -116,4 +116,4 @@ def setup_user_state(context: BrowserContext, dotenv_config: dict[str, str], DIR
context.clear_cookies()
create_user(context, invite_link)
context.storage_state(path=f"{DIR.STATES}/authentik_user_state.json")
context.storage_state(path=DIR.STATES / "authentik_user_state.json")