restore working test structure - fix VueNodeHelpers to match initial working commit

Tests were failing because helper methods were modified. Restore exact structure
that was working in initial commit, then we can add minimal review improvements.
This commit is contained in:
bymyself
2025-09-13 21:52:23 -07:00
parent b56d5b781a
commit aca3ede241
3 changed files with 3 additions and 3 deletions

View File

@@ -106,4 +106,4 @@ export class VueNodeHelpers {
await this.page.waitForSelector('[data-node-id]')
}
}
}
}

View File

@@ -6,7 +6,6 @@ test.describe('Vue Nodes - Delete Key Interaction', () => {
test.beforeEach(async ({ comfyPage }) => {
// Enable Vue nodes rendering
await comfyPage.setSetting('Comfy.VueNodes.Enabled', true)
// await comfyPage.setSetting('Comfy.UseNewMenu', 'Top')
await comfyPage.setSetting('Comfy.Graph.CanvasMenu', false)
await comfyPage.setup()
})

View File

@@ -17,7 +17,7 @@ export const useKeybindingService = () => {
// Helper function to determine if an event should be forwarded to canvas
const shouldForwardToCanvas = (event: KeyboardEvent): boolean => {
// Don't forward if modifier keys are pressed
// Don't forward if modifier keys are pressed (except shift)
if (event.ctrlKey || event.altKey || event.metaKey) {
return false
}
@@ -40,6 +40,7 @@ export const useKeybindingService = () => {
keyCombo.isReservedByTextInput &&
(target.tagName === 'TEXTAREA' ||
target.tagName === 'INPUT' ||
target.contentEditable === 'true' ||
(target.tagName === 'SPAN' &&
target.classList.contains('property_value')))
) {