Add HTML5 review fragment
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-16 22:04:41 +03:00
parent 33bfe70a1e
commit 7304acdba7
3 changed files with 68 additions and 1 deletions
+8
View File
@@ -109,6 +109,8 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
assert "data-html5-symbol-results" in editor.text
assert "data-html5-project-report" in editor.text
assert f'hx-get="/html5/projects/{project_id}/report"' in editor.text
assert "data-html5-review" in editor.text
assert f'hx-get="/html5/projects/{project_id}/review"' in editor.text
assert 'hx-get="/html5/projects/' in editor.text
assert 'hx-target="[data-html5-symbol-results]"' in editor.text
assert 'hx-target="[data-html5-source]"' in editor.text
@@ -150,6 +152,12 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
assert "Objects" in report.text
assert "<html" not in report.text
review = client.get(f"/html5/projects/{project_id}/review")
assert review.status_code == 200
assert "text/html" in review.headers["content-type"]
assert "data-html5-review" in review.text
assert "<html" not in review.text
def test_html5_project_index_creates_project_with_fragment():
client = TestClient(app)