mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
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:
@@ -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 |
Reference in New Issue
Block a user