diff --git a/browser_tests/fixtures/helpers/NodeOperationsHelper.ts b/browser_tests/fixtures/helpers/NodeOperationsHelper.ts index a8320bda7..b67b91cb3 100644 --- a/browser_tests/fixtures/helpers/NodeOperationsHelper.ts +++ b/browser_tests/fixtures/helpers/NodeOperationsHelper.ts @@ -100,14 +100,6 @@ export class NodeOperationsHelper { await this.comfyPage.nextFrame() } - async select2Nodes(): Promise { - await this.page.keyboard.down('Control') - await this.comfyPage.clickTextEncodeNode1() - await this.comfyPage.clickTextEncodeNode2() - await this.page.keyboard.up('Control') - await this.comfyPage.nextFrame() - } - async resizeNode( nodePos: Position, nodeSize: Size, diff --git a/browser_tests/tests/interaction.spec.ts b/browser_tests/tests/interaction.spec.ts index c13f03c81..6f10d6871 100644 --- a/browser_tests/tests/interaction.spec.ts +++ b/browser_tests/tests/interaction.spec.ts @@ -402,7 +402,7 @@ test.describe('Node Interaction', () => { { tag: '@screenshot' }, async ({ comfyPage }) => { await comfyPage.setSetting('Comfy.GroupSelectedNodes.Padding', 10) - await comfyPage.nodeOps.select2Nodes() + await comfyPage.nodeOps.selectNodes(['CLIP Text Encode (Prompt)']) await comfyPage.page.keyboard.down('Control') await comfyPage.page.keyboard.press('KeyG') await comfyPage.page.keyboard.up('Control') @@ -432,7 +432,7 @@ test.describe('Node Interaction', () => { ) test('Can pin/unpin nodes', { tag: '@screenshot' }, async ({ comfyPage }) => { - await comfyPage.nodeOps.select2Nodes() + await comfyPage.nodeOps.selectNodes(['CLIP Text Encode (Prompt)']) await comfyPage.executeCommand('Comfy.Canvas.ToggleSelectedNodes.Pin') await comfyPage.nextFrame() await expect(comfyPage.canvas).toHaveScreenshot('nodes-pinned.png') @@ -445,7 +445,7 @@ test.describe('Node Interaction', () => { 'Can bypass/unbypass nodes with keyboard shortcut', { tag: '@screenshot' }, async ({ comfyPage }) => { - await comfyPage.nodeOps.select2Nodes() + await comfyPage.nodeOps.selectNodes(['CLIP Text Encode (Prompt)']) await comfyPage.canvas.press('Control+b') await comfyPage.nextFrame() await expect(comfyPage.canvas).toHaveScreenshot('nodes-bypassed.png') diff --git a/browser_tests/tests/mobileBaseline.spec.ts b/browser_tests/tests/mobileBaseline.spec.ts index 23f216fe7..e2f446ea3 100644 --- a/browser_tests/tests/mobileBaseline.spec.ts +++ b/browser_tests/tests/mobileBaseline.spec.ts @@ -10,7 +10,7 @@ test.describe( await comfyPage.executeCommand('Comfy.ClearWorkflow') await expect(async () => { expect(await comfyPage.nodeOps.getGraphNodesCount()).toBe(0) - }).toPass({ timeout: 256 }) + }).toPass({ timeout: 5000 }) await comfyPage.nextFrame() await expect(comfyPage.canvas).toHaveScreenshot('mobile-empty-canvas.png') }) diff --git a/browser_tests/tests/rightClickMenu.spec.ts b/browser_tests/tests/rightClickMenu.spec.ts index 704afdf7d..44af79089 100644 --- a/browser_tests/tests/rightClickMenu.spec.ts +++ b/browser_tests/tests/rightClickMenu.spec.ts @@ -34,7 +34,7 @@ test.describe( }) test('Can convert to group node', async ({ comfyPage }) => { - await comfyPage.nodeOps.select2Nodes() + await comfyPage.nodeOps.selectNodes(['CLIP Text Encode (Prompt)']) await expect(comfyPage.canvas).toHaveScreenshot('selected-2-nodes.png') await comfyPage.canvasOps.rightClick() await comfyPage.clickContextMenuItem('Convert to Group Node (Deprecated)') @@ -139,7 +139,7 @@ test.describe('Node Right Click Menu', { tag: ['@screenshot', '@ui'] }, () => { }) test('Can pin/unpin selected nodes', async ({ comfyPage }) => { - await comfyPage.nodeOps.select2Nodes() + await comfyPage.nodeOps.selectNodes(['CLIP Text Encode (Prompt)']) await comfyPage.page.keyboard.down('Control') await comfyPage.rightClickEmptyLatentNode() await comfyPage.page.click('.litemenu-entry:has-text("Pin")')