fix: automate GLB compression and real viewport smoke

This commit is contained in:
2026-07-10 13:19:47 +08:00
parent 78ec1fbdcc
commit cab4d320c0
6 changed files with 43 additions and 10 deletions

View File

@@ -78,7 +78,11 @@ def test_served_viewer_in_desktop_and_mobile(tmp_path: Path) -> None:
capture_output=True,
)
assert proc.returncode == 0, proc.stderr
assert json.loads(report.read_text(encoding="utf-8"))["status"] == "PASS"
result = json.loads(report.read_text(encoding="utf-8"))
assert result["status"] == "PASS"
checks = {item["name"]: item for item in result["checks"]}
assert checks["desktop:viewport"]["detail"] == "1440x900 expected 1440x900"
assert checks["mobile:viewport"]["detail"] == "390x844 expected 390x844"
finally:
server.terminate()
server.wait(timeout=10)