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(