def test_frontend_pages_serve_branded_shell(client): for path in ( "/", "/lesson/new", "/lesson/example-session", "/lesson/example-session/quiz", "/lesson/example-session/summary", ): response = client.get(path) assert response.status_code == 200 assert "Gargi AI" in response.text assert "/static/logo-mark.svg" in response.text def test_frontend_assets_are_available(client): expected_types = { "/static/styles.css": "text/css", "/static/app-v2.js": "application/javascript", "/static/mic-processor.js": "application/javascript", "/static/logo-mark.svg": "image/svg+xml", "/static/vendor/live2d/lib/pixi.min.js": "application/javascript", "/static/vendor/live2d/lib/pixi-live2d-display-cubism4.min.js": "application/javascript", "/static/vendor/live2d/lib/live2dcubismcore.min.js": "application/javascript", "/static/vendor/live2d/haru/haru_greeter_t03.model3.json": "application/json", "/static/vendor/live2d/haru/haru_greeter_t03.2048/texture_00.png": "image/png", } for path, content_type in expected_types.items(): response = client.get(path) assert response.status_code == 200 assert content_type in response.headers["content-type"]