Add HTML5 import preflight check
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-16 21:39:26 +03:00
parent 86f64de08f
commit 52caf1b331
3 changed files with 72 additions and 1 deletions
+9
View File
@@ -196,8 +196,10 @@ def test_html5_project_setup_renders_server_fragments():
assert "data-html5-setup-summary" in setup.text
assert f'hx-get="/html5/projects/{project_id}/setup/summary"' in setup.text
assert f'hx-post="/html5/projects/{project_id}/setup/source"' in setup.text
assert f'hx-post="/html5/projects/{project_id}/setup/check"' in setup.text
assert f'hx-post="/html5/projects/{project_id}/setup/import"' in setup.text
assert f'hx-post="/html5/projects/{project_id}/setup/reindex"' in setup.text
assert "data-html5-import-check" in setup.text
assert "XML_DUMP" in setup.text
assert "__next" not in setup.text
@@ -207,6 +209,13 @@ def test_html5_project_setup_renders_server_fragments():
assert "EDT_PROJECT" in source.text
assert "<html" not in source.text
check = client.post(f"/html5/projects/{project_id}/setup/check")
assert check.status_code == 200
assert "data-html5-import-check" in check.text
assert "data-html5-preflight-check" in check.text
assert "WARNING" in check.text
assert "<html" not in check.text
html5_import = client.post(f"/html5/projects/{project_id}/setup/import")
assert html5_import.status_code == 200
assert "data-html5-setup-summary" in html5_import.text