WIP: add nextcloud tests

This commit is contained in:
Daniel 2023-11-30 11:42:52 +01:00
parent cb6544f5aa
commit ca974d9024
6 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,13 @@
def test_nextcloud(nc_session):
"""Test Nextcloud"""
context, page = nc_session
# if page.query_selector('.close-icon'):
# page.get_by_role("button", name="Close modal").click()
if CONFIG.get("default_quota"):
quota = int(
page.get_by_role("listitem", name="Storage informations").get_by_role("link").inner_text().split()[3]
)
assert quota == CONFIG["default_quota"]
for app in CONFIG["nc_apps"]:
check_for(page.get_by_role("link", name=app))
context.tracing.stop(path=f"{RECORDS}/nextcloud.zip")