mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-16 17:39:26 -05:00
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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user