From 2ef25545e1ba9fa3f3aaecd5faec89c260d1f61a Mon Sep 17 00:00:00 2001 From: christian-byrne Date: Sun, 29 Sep 2024 18:37:42 -0700 Subject: [PATCH] Add test on closing open workflows in sidebar --- browser_tests/menu.spec.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/browser_tests/menu.spec.ts b/browser_tests/menu.spec.ts index ccc90bf71..241742eb4 100644 --- a/browser_tests/menu.spec.ts +++ b/browser_tests/menu.spec.ts @@ -437,6 +437,19 @@ test.describe('Menu', () => { comfyPage.page.locator('.comfy-missing-nodes') ).not.toBeVisible() }) + + test('Can close saved-workflows from the open workflows section', async ({ + comfyPage + }) => { + await comfyPage.menu.topbar.saveWorkflow('deault') + const closeButton = comfyPage.page.locator( + '.comfyui-workflows-open .p-button-icon.pi-times' + ) + await closeButton.click() + expect( + await comfyPage.menu.workflowsTab.getOpenedWorkflowNames() + ).toEqual(['*Unsaved Workflow (2).json']) + }) }) test.describe('Workflows topbar tabs', () => {