Link HTML5 review findings to source
This commit is contained in:
@@ -171,6 +171,15 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
|
||||
assert "Проверить" in source.text
|
||||
assert "<html" not in source.text
|
||||
|
||||
source_by_path = client.get(
|
||||
f"/html5/projects/{project_id}/source/by-path",
|
||||
params={"path": module_node["source_ref"]["source_path"]},
|
||||
)
|
||||
assert source_by_path.status_code == 200
|
||||
assert "data-html5-source-summary" in source_by_path.text
|
||||
assert "Проверить" in source_by_path.text
|
||||
assert "<html" not in source_by_path.text
|
||||
|
||||
detail = client.get(f"/html5/projects/{project_id}/symbols/{procedure_node['lineage_id']}/detail")
|
||||
assert detail.status_code == 200
|
||||
assert "text/html" in detail.headers["content-type"]
|
||||
@@ -193,6 +202,7 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
|
||||
assert review.status_code == 200
|
||||
assert "text/html" in review.headers["content-type"]
|
||||
assert "data-html5-review" in review.text
|
||||
assert "data-html5-review-source" in review.text or "Findings не найдены" in review.text
|
||||
assert "<html" not in review.text
|
||||
|
||||
authoring = client.get(f"/html5/projects/{project_id}/authoring/changes")
|
||||
@@ -379,6 +389,7 @@ def test_html5_object_context_fragment(tmp_path: Path):
|
||||
assert "Отчет объекта" in context.text
|
||||
assert "server focused summary" in context.text
|
||||
assert "data-html5-review" in context.text
|
||||
assert "data-html5-review-source" in context.text
|
||||
assert "Review объекта" in context.text
|
||||
assert "External integration endpoint" in context.text
|
||||
assert "1 signals" in context.text
|
||||
|
||||
Reference in New Issue
Block a user