refactor for independent test dirs #7
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ def setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager):
|
|||
page_nextcloud = event_context.value
|
||||
context = page_nextcloud.context
|
||||
|
||||
context.storage_state(path=f"{DIR.STATES}/nextcloud_admin_state.json")
|
||||
context.storage_state(path=DIR.STATES / "nextcloud_admin_state.json")
|
||||
page_nextcloud.goto("/apps/files")
|
||||
expect(page_nextcloud.get_by_role("link", name="Name")).to_be_visible()
|
||||
|
||||
|
|
|
|||
|
|
@ -25,4 +25,4 @@ def setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager):
|
|||
expect(page_wordpress.locator("#wpadminbar")).to_be_visible()
|
||||
# save session
|
||||
context = page_wordpress.context
|
||||
context.storage_state(path=f"{DIR.STATES}/wordpress_admin_state.json")
|
||||
context.storage_state(path=DIR.STATES / "wordpress_admin_state.json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue