Page __LABEL__: real sidebar regression fixture
Use a mobile viewport. Real CSS and navigation script are read live from this checkout.
Same-page hash destination
__CARDS__#!/usr/bin/env python3 """Serve the real administrator sidebar CSS and script without PHP or a database. Run: python3 web/tests/manual/admin_sidebar_fixture.py [--port 8766] Open http://127.0.0.1:8766/a with a viewport narrower than 992 CSS pixels. Use "Run scroll and coverage checks", "Test 204 recovery", and the real menu button. Page B responds after 800 ms. Open the menu, follow "Slow page B", then use browser Back to exercise actual BFCache. The report explicitly says SKIP when the browser does not restore from BFCache; a separate historyReturn check still verifies the saved scroll after a new-document history return. The fixture stores only its expected value in its own sessionStorage key. Resize while the menu is open and press "Snapshot" to inspect coverage. The visible report and window.sidebarFixture.snapshot() expose geometry for browser automation. This desktop fixture verifies layout and interactions, not iOS toolbar or rubber-band behavior. Those need a real device. This server only binds loopback. """ import argparse import html import re import time from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from pathlib import Path from urllib.parse import urlsplit WEB_ROOT = Path(__file__).resolve().parents[2] ASSETS = { "/theme/venix/css/app.min.css": WEB_ROOT / "public/theme/venix/css/app.min.css", "/theme/venix/css/admin-home.css": WEB_ROOT / "public/theme/venix/css/admin-home.css", } FOOTER = WEB_ROOT / "resources/views/venix/admin/static_footer.tpl" def sidebar_script(): scripts = re.findall(r"", FOOTER.read_text(), re.DOTALL) matches = [script for script in scripts if "button-toggle-menu" in script] if len(matches) != 1: raise RuntimeError("Expected exactly one real administrator sidebar script") return matches[0] def page(path): label = "A" if path == "/a" else "B" menu_rows = "".join( f'
Visible page content must remain visible while navigating.
Use a mobile viewport. Real CSS and navigation script are read live from this checkout.
Same-page hash destination
__CARDS__