16 lines
754 B
Python
16 lines
754 B
Python
# retoor <retoor@molodetz.nl>
|
|
from tests.conftest import goto_ready, login_admin
|
|
|
|
ADMIN_PAGES = ["/admin", "/admin/posts", "/admin/joins", "/admin/services", "/admin/services/backup", "/admin/trash", "/admin/settings", "/admin/users", "/admin/audit", "/admin/backups", "/admin/stats", "/notifications", "/profile/api-key", "/docs/api/admin"]
|
|
|
|
|
|
def test_admin_pages_have_no_js_errors(page, app_server):
|
|
login_admin(page, app_server)
|
|
for path in ADMIN_PAGES:
|
|
goto_ready(page, app_server + path)
|
|
page.goto(app_server + "/admin/services/backup", wait_until="domcontentloaded")
|
|
page.click("[data-tab=logs]")
|
|
assert page.locator("[data-panel=logs]").is_visible()
|
|
page.wait_for_timeout(3500)
|
|
assert page.console_errors == []
|