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")