WIP: add nextcloud tests
This commit is contained in:
parent
cb6544f5aa
commit
ca974d9024
6 changed files with 106 additions and 0 deletions
13
src/tests_nextcloud/tests_nextcloud.py
Normal file
13
src/tests_nextcloud/tests_nextcloud.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue