feat(ui): responsive + WCAG AA polish pass across chat and sources — v1 feature complete
This commit is contained in:
@@ -3,6 +3,8 @@ from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
||||
import pytest
|
||||
|
||||
from app.config import get_settings
|
||||
|
||||
|
||||
@@ -48,12 +50,17 @@ def test_suggestions_honors_bor_suggestions_env_override(monkeypatch) -> None:
|
||||
assert r.json() == {"suggestions": override}
|
||||
|
||||
|
||||
def test_index_html_served_locally(client) -> None:
|
||||
"""No-CDN check: the page is served by FastAPI and references only
|
||||
same-origin assets (no https:// script/link tags)."""
|
||||
r = client.get("/")
|
||||
@pytest.mark.parametrize(
|
||||
("path", "marker"),
|
||||
[("/", "Brain of Reese"), ("/sources.html", "Knowledge base")],
|
||||
)
|
||||
def test_html_pages_served_locally_no_cdn(client, path: str, marker: str) -> None:
|
||||
"""No-CDN check (PLAN §7.3, re-verified on BOTH pages in phase 07):
|
||||
each page is served by FastAPI and references only same-origin assets
|
||||
(no https:// script/link tags)."""
|
||||
r = client.get(path)
|
||||
assert r.status_code == 200
|
||||
assert "Brain of Reese" in r.text
|
||||
assert marker in r.text
|
||||
assert 'src="https://' not in r.text
|
||||
assert 'href="https://' not in r.text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user