Add HTML5 authoring changes panel

This commit is contained in:
2026-05-16 22:53:03 +03:00
parent 9f11c07781
commit 165f218e1c
3 changed files with 72 additions and 1 deletions
+9
View File
@@ -112,6 +112,8 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
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 "data-html5-authoring-changes" in editor.text
assert f'hx-get="/html5/projects/{project_id}/authoring/changes"' 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-symbol-detail]"' in editor.text
@@ -173,6 +175,13 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
assert "data-html5-review" in review.text
assert "<html" not in review.text
authoring = client.get(f"/html5/projects/{project_id}/authoring/changes")
assert authoring.status_code == 200
assert "text/html" in authoring.headers["content-type"]
assert "data-html5-authoring-changes" in authoring.text
assert "Изменений пока нет" in authoring.text
assert "<html" not in authoring.text
def test_html5_project_index_creates_project_with_fragment():
client = TestClient(app)