From befb2d7b5f4e097e067de6083db0cc60f494e939 Mon Sep 17 00:00:00 2001 From: Dries Peeters Date: Thu, 14 May 2026 06:23:18 +0200 Subject: [PATCH] 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. --- tests/test_keyboard_shortcuts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_keyboard_shortcuts.py b/tests/test_keyboard_shortcuts.py index b5121958..8de7f948 100644 --- a/tests/test_keyboard_shortcuts.py +++ b/tests/test_keyboard_shortcuts.py @@ -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"""