test: close menu after setup() calls and in rerouteNode beforeEach

- colorPalette: add closeMenu() after setup() that reloads page
- interaction: add closeMenu() after setup({ clearStorage: false })
- rerouteNode: add closeMenu() in Native Reroute describe beforeEach
- Remove orphaned animated-image-preview golden images
This commit is contained in:
Johnpaul
2026-04-13 23:15:35 +01:00
parent fd25ea2969
commit 7c3a16b16c
17 changed files with 4 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ test.describe('Color Palette', { tag: ['@screenshot', '@settings'] }, () => {
// Reload to apply the new setting. Setting Comfy.CustomColorPalettes directly
// doesn't update the store immediately.
await comfyPage.setup()
await comfyPage.closeMenu()
await comfyPage.workflow.loadWorkflow('nodes/every_node_color')
await comfyPage.settings.setSetting('Comfy.ColorPalette', 'obsidian_dark')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

View File

@@ -849,6 +849,7 @@ test.describe('Load workflow', { tag: '@screenshot' }, () => {
await comfyPage.workflow.loadWorkflow('nodes/single_ksampler')
await expect(comfyPage.canvas).toHaveScreenshot('single_ksampler.png')
await comfyPage.setup({ clearStorage: false })
await comfyPage.closeMenu()
await expect(comfyPage.canvas).toHaveScreenshot('single_ksampler.png')
})
@@ -882,6 +883,7 @@ test.describe('Load workflow', { tag: '@screenshot' }, () => {
return false
}, start)
await comfyPage.setup({ clearStorage: false })
await comfyPage.closeMenu()
await expect(comfyPage.canvas).toHaveScreenshot(
'single_ksampler_modified.png'
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -44,6 +44,7 @@ test.describe(
() => {
test.beforeEach(async ({ comfyPage }) => {
await comfyPage.settings.setSetting('Comfy.UseNewMenu', 'Disabled')
await comfyPage.closeMenu()
await comfyPage.settings.setSetting('LiteGraph.Reroute.SplineOffset', 80)
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB