Add HTML5 authoring result summaries
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 02:15:40 +03:00
parent 04cba89580
commit dde672202c
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -2558,6 +2558,8 @@ def test_authoring_context_and_completion_preview(tmp_path: Path):
assert html5_preview.status_code == 200
assert "text/html" in html5_preview.headers["content-type"]
assert "data-html5-authoring-preview-result" in html5_preview.text
assert "data-html5-authoring-result-summary" in html5_preview.text
assert "diff lines" in html5_preview.text
assert "ЗначениеЗаполнено(Контрагент)" in html5_preview.text
assert "BLOCKED" in html5_preview.text
assert "ADD" in html5_preview.text
@@ -2581,6 +2583,8 @@ def test_authoring_context_and_completion_preview(tmp_path: Path):
assert html5_diff_preview.status_code == 200
assert "text/html" in html5_diff_preview.headers["content-type"]
assert "data-html5-authoring-diff-result" in html5_diff_preview.text
assert "data-html5-authoring-result-summary" in html5_diff_preview.text
assert "changed" in html5_diff_preview.text
assert "data-html5-authoring-apply-form" in html5_diff_preview.text
assert f'hx-post="/html5/projects/{project_id}/authoring/apply-change-set"' in html5_diff_preview.text
assert "data-html5-authoring-apply-result" in html5_diff_preview.text