From f12d4a2d6f914fc668319df04c2deca7cc3770cb Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:09:25 +1100 Subject: [PATCH] [Test] Update test expectations for 2357 (#2361) --- browser_tests/rightClickMenu.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/browser_tests/rightClickMenu.spec.ts b/browser_tests/rightClickMenu.spec.ts index 389d07104..69e683354 100644 --- a/browser_tests/rightClickMenu.spec.ts +++ b/browser_tests/rightClickMenu.spec.ts @@ -102,6 +102,18 @@ test.describe('Node Right Click Menu', () => { await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png') await comfyPage.page.getByText('Convert Widget to Input').click() await comfyPage.nextFrame() + // The submenu has an identical entry as the base menu - use last + await comfyPage.page.getByText('Convert width to input').last().click() + await comfyPage.nextFrame() + await expect(comfyPage.canvas).toHaveScreenshot( + 'right-click-node-widget-converted.png' + ) + }) + + test('Can convert widget without submenu', async ({ comfyPage }) => { + // Right-click the width widget + await comfyPage.rightClickEmptyLatentNode() + await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png') await comfyPage.page.getByText('Convert width to input').click() await comfyPage.nextFrame() await expect(comfyPage.canvas).toHaveScreenshot(