[fix] Update tests to use event.code format for keyboard shortcuts

This commit is contained in:
snomiao
2025-09-30 01:40:57 +00:00
parent 0f44b5ea58
commit e5adc840fe
4 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ test.describe('Keybindings', () => {
test('Should not trigger non-modifier keybinding when typing in input fields', async ({
comfyPage
}) => {
await comfyPage.registerKeybinding({ key: 'k' }, () => {
await comfyPage.registerKeybinding({ key: 'KeyK' }, () => {
window['TestCommand'] = true
})
@@ -26,7 +26,7 @@ test.describe('Keybindings', () => {
test('Should not trigger modifier keybinding when typing in input fields', async ({
comfyPage
}) => {
await comfyPage.registerKeybinding({ key: 'k', ctrl: true }, () => {
await comfyPage.registerKeybinding({ key: 'KeyK', ctrl: true }, () => {
window['TestCommand'] = true
})