Skip to content

Commit 19d98a0

Browse files

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -828,55 +828,55 @@ test.describe('Vue Node Link Interaction', () => {
828828
})
829829

830830
test.describe('Release actions (Shift-drop)', () => {
831-
test('Context menu opens and endpoint is pinned on Shift-drop', async ({
832-
comfyPage,
833-
comfyMouse
834-
}) => {
835-
await comfyPage.setSetting(
836-
'Comfy.LinkRelease.ActionShift',
837-
'context menu'
838-
)
839-
840-
const samplerNode = (await comfyPage.getNodeRefsByType('KSampler'))[0]
841-
expect(samplerNode).toBeTruthy()
842-
843-
const outputCenter = await getSlotCenter(
844-
comfyPage.page,
845-
samplerNode.id,
846-
0,
847-
false
848-
)
849-
850-
const dropPos = { x: outputCenter.x + 180, y: outputCenter.y - 140 }
831+
test.fixme(
832+
'Context menu opens and endpoint is pinned on Shift-drop',
833+
async ({ comfyPage, comfyMouse }) => {
834+
await comfyPage.setSetting(
835+
'Comfy.LinkRelease.ActionShift',
836+
'context menu'
837+
)
838+
839+
const samplerNode = (await comfyPage.getNodeRefsByType('KSampler'))[0]
840+
expect(samplerNode).toBeTruthy()
841+
842+
const outputCenter = await getSlotCenter(
843+
comfyPage.page,
844+
samplerNode.id,
845+
0,
846+
false
847+
)
848+
849+
const dropPos = { x: outputCenter.x + 180, y: outputCenter.y - 140 }
850+
851+
await comfyMouse.move(outputCenter)
852+
await comfyPage.page.keyboard.down('Shift')
853+
try {
854+
await comfyMouse.drag(dropPos)
855+
await comfyMouse.drop()
856+
} finally {
857+
await comfyPage.page.keyboard.up('Shift').catch(() => {})
858+
}
851859

852-
await comfyMouse.move(outputCenter)
853-
await comfyPage.page.keyboard.down('Shift')
854-
try {
855-
await comfyMouse.drag(dropPos)
856-
await comfyMouse.drop()
857-
} finally {
858-
await comfyPage.page.keyboard.up('Shift').catch(() => {})
860+
// Context menu should be visible
861+
const contextMenu = comfyPage.page.locator('.litecontextmenu')
862+
await expect(contextMenu).toBeVisible()
863+
864+
// Pinned endpoint should not change with mouse movement while menu is open
865+
const before = await comfyPage.page.evaluate(() => {
866+
const snap = window['app']?.canvas?.linkConnector?.state?.snapLinksPos
867+
return Array.isArray(snap) ? [snap[0], snap[1]] : null
868+
})
869+
expect(before).not.toBeNull()
870+
871+
// Move mouse elsewhere and verify snap position is unchanged
872+
await comfyMouse.move({ x: dropPos.x + 160, y: dropPos.y + 100 })
873+
const after = await comfyPage.page.evaluate(() => {
874+
const snap = window['app']?.canvas?.linkConnector?.state?.snapLinksPos
875+
return Array.isArray(snap) ? [snap[0], snap[1]] : null
876+
})
877+
expect(after).toEqual(before)
859878
}
860-
861-
// Context menu should be visible
862-
const contextMenu = comfyPage.page.locator('.litecontextmenu')
863-
await expect(contextMenu).toBeVisible()
864-
865-
// Pinned endpoint should not change with mouse movement while menu is open
866-
const before = await comfyPage.page.evaluate(() => {
867-
const snap = window['app']?.canvas?.linkConnector?.state?.snapLinksPos
868-
return Array.isArray(snap) ? [snap[0], snap[1]] : null
869-
})
870-
expect(before).not.toBeNull()
871-
872-
// Move mouse elsewhere and verify snap position is unchanged
873-
await comfyMouse.move({ x: dropPos.x + 160, y: dropPos.y + 100 })
874-
const after = await comfyPage.page.evaluate(() => {
875-
const snap = window['app']?.canvas?.linkConnector?.state?.snapLinksPos
876-
return Array.isArray(snap) ? [snap[0], snap[1]] : null
877-
})
878-
expect(after).toEqual(before)
879-
})
879+
)
880880

881881
test('Context menu -> Search pre-filters by link type and connects after selection', async ({
882882
comfyPage,

0 commit comments

Comments
 (0)