fix: add per-test closeMenu for restore-workflow screenshot tests

File-level closeMenu was removed (interfered with Top menu tests),
so add it at the start of the two restore-workflow tests that take
screenshots with Disabled menu.
This commit is contained in:
Johnpaul
2026-04-14 14:58:53 +01:00
parent b391383e78
commit 3d4461f6ca
3 changed files with 2 additions and 0 deletions

View File

@@ -845,6 +845,7 @@ test.describe('Load workflow', { tag: '@screenshot' }, () => {
test('Restore workflow on reload (switch workflow)', async ({
comfyPage
}) => {
await comfyPage.closeMenu()
await comfyPage.workflow.loadWorkflow('nodes/single_ksampler')
await expect(comfyPage.canvas).toHaveScreenshot('single_ksampler.png')
await comfyPage.setup({ clearStorage: false })
@@ -855,6 +856,7 @@ test.describe('Load workflow', { tag: '@screenshot' }, () => {
test('Restore workflow on reload (modify workflow)', async ({
comfyPage
}) => {
await comfyPage.closeMenu()
await comfyPage.workflow.loadWorkflow('nodes/single_ksampler')
const node = (await comfyPage.nodeOps.getFirstNodeRef())!
await node.click('collapse')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB