mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
[Test] Update test expectations for 2357 (#2361)
This commit is contained in:
@@ -102,6 +102,18 @@ test.describe('Node Right Click Menu', () => {
|
|||||||
await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png')
|
await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png')
|
||||||
await comfyPage.page.getByText('Convert Widget to Input').click()
|
await comfyPage.page.getByText('Convert Widget to Input').click()
|
||||||
await comfyPage.nextFrame()
|
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.page.getByText('Convert width to input').click()
|
||||||
await comfyPage.nextFrame()
|
await comfyPage.nextFrame()
|
||||||
await expect(comfyPage.canvas).toHaveScreenshot(
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
||||||
|
|||||||
Reference in New Issue
Block a user