Add HTML5 authoring result summaries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user