use Path directly in storage_state
This commit is contained in:
parent
c02af669fe
commit
e33dc95632
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ def setup_admin_state(context: BrowserContext, dotenv_config: dict[str, str], DI
|
||||||
expect(page.locator("ak-library")).to_be_visible()
|
expect(page.locator("ak-library")).to_be_visible()
|
||||||
|
|
||||||
# save state
|
# 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]):
|
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()
|
context.clear_cookies()
|
||||||
create_user(context, invite_link)
|
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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue