test(blueprint): also assert prism.css is referenced in editor assets
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) <noreply@anthropic.com>
This commit is contained in:
parent
607970eb43
commit
c6f10e632d
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue