test: Update tests to use event.code format for keyboard shortcuts

- Update keybinding tests to use event.code instead of event.key
- Add forwarding test for keybinding service
- Align tests with the fix for non-English keyboard layouts

This ensures tests match the application's use of event.code for
language-independent keyboard shortcut handling.
This commit is contained in:
snomiao
2025-10-01 03:26:24 +00:00
parent 82a603ef03
commit 692666ff63
6 changed files with 184 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import {
} from '@/stores/keybindingStore'
// Mock stores
vi.mock('@/stores/settingStore', () => ({
vi.mock('@/platform/settings/settingStore', () => ({
useSettingStore: vi.fn(() => ({
get: vi.fn(() => [])
}))