From c6f10e632db450033182f4190e01c04ac1d3803d Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 16 May 2026 20:35:44 +0200 Subject: [PATCH] test(blueprint): also assert prism.css is referenced in editor assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The plan template (and verbatim implementation) listed five of the six editor asset URLs in the structural test — vendor/prism.css was omitted. If a future change drops the Prism stylesheet from the partial, syntax tokens lose their color rules silently and the test still passes. Add the missing assertion and update the plan to match. Addresses Minor #1 from the Task 6 code review. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/superpowers/plans/2026-05-16-textarea-code-editor.md | 1 + l4d2web/tests/test_blueprints.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md index edc1bd9..80a52ef 100644 --- a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md +++ b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md @@ -625,6 +625,7 @@ def test_blueprint_detail_renders_editor_assets(user_client) -> None: assert 'data-editor-language="srccfg"' in body # All editor assets are referenced. assert "static/vendor/prism.js" in body + assert "static/vendor/prism.css" in body assert "static/vendor/codejar.js" in body assert "static/js/srccfg-grammar.js" in body assert "static/js/editor.js" in body diff --git a/l4d2web/tests/test_blueprints.py b/l4d2web/tests/test_blueprints.py index 103a608..1f9c10a 100644 --- a/l4d2web/tests/test_blueprints.py +++ b/l4d2web/tests/test_blueprints.py @@ -268,6 +268,7 @@ def test_blueprint_detail_renders_editor_assets(user_client) -> None: assert 'data-editor-language="srccfg"' in body # All editor assets are referenced. assert "static/vendor/prism.js" in body + assert "static/vendor/prism.css" in body assert "static/vendor/codejar.js" in body assert "static/js/srccfg-grammar.js" in body assert "static/js/editor.js" in body