test(keyboard): update asset assertions for advanced shortcuts script

base.html now loads keyboard-shortcuts-advanced.js globally instead of
keyboard-shortcuts-enhanced.js, and the cheat-sheet CSS is only pulled
in on the dedicated settings page. Update the integration assertion
accordingly.
This commit is contained in:
Dries Peeters
2026-05-14 06:23:18 +02:00
parent 93dafdbc31
commit befb2d7b5f
+3 -2
View File
@@ -67,8 +67,9 @@ class TestKeyboardShortcutsIntegration:
"""Test keyboard shortcuts are included in base template"""
response = self.client.get("/")
assert response.status_code == 200
assert b"keyboard-shortcuts.css" in response.data
assert b"keyboard-shortcuts-enhanced.js" in response.data
# base.html loads the advanced keyboard shortcuts script on every
# page; the cheat-sheet CSS is loaded on the dedicated settings page.
assert b"keyboard-shortcuts-advanced.js" in response.data
def test_command_palette_in_base_template(self):
"""Test command palette is available"""