Files
retoor 874c37350b Remove contributing and component docs from the public docs site
Drop the Contributing and internals section, Architecture, Frontend,
and dp-* component pages from the docs registry, prose files, nav, and
legacy redirect target. Guard with tests that fail if they return.
2026-10-05 15:55:35 +02:00

30 lines
1.1 KiB
Python

# retoor <retoor@molodetz.nl>
from tests.conftest import assert_no_horizontal_overflow, goto_ready
PUBLIC_PAGES = ["/", "/roll", "/standard", "/flyers", "/memes", "/people", "/people/retoor", "/join", "/docs", "/docs/welcome", "/docs/api/content", "/terms", "/privacy"]
def test_home_renders_without_errors(page, app_server):
goto_ready(page, app_server + "/")
assert page.locator("h1").first.inner_text().strip().lower() == "molodetz"
assert page.locator("nav .nav-links a", has_text="Join").count() == 1
assert page.console_errors == []
def test_mobile_nav_toggle(browser, app_server):
context = browser.new_context(viewport={"width": 390, "height": 800})
page = context.new_page()
page.set_default_timeout(60000)
goto_ready(page, app_server + "/")
assert_no_horizontal_overflow(page)
assert not page.locator("#nav-links").is_visible()
page.click("[data-nav-toggle]")
assert page.locator("#nav-links").is_visible()
context.close()
def test_public_pages_have_no_js_errors(page, app_server):
for path in PUBLIC_PAGES:
goto_ready(page, app_server + path)
assert page.console_errors == []