fix nextcloud setup
This commit is contained in:
parent
064e4dae2d
commit
755eb6268a
1 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import re
|
||||
|
||||
from playwright.sync_api import Page, expect
|
||||
|
||||
from pytest_abra.dir_manager import DirManager
|
||||
|
|
@ -16,6 +18,9 @@ def setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, U
|
|||
page_nextcloud = event_context.value
|
||||
context = page_nextcloud.context
|
||||
|
||||
# expect quota stats on files page to confirm successful login
|
||||
page_nextcloud.goto(URL.get("/apps/files"))
|
||||
expect(page_nextcloud.get_by_role("link", name="Name")).to_be_visible()
|
||||
quota_pattern = re.compile(r"\d*,\d .* (\d*,\d).")
|
||||
expect(page_nextcloud.get_by_text(quota_pattern)).to_be_visible()
|
||||
|
||||
context.storage_state(path=DIR.STATES / "nextcloud_admin_state.json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue