Skip to content

Commit

Permalink
Add test on closing open workflows in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Sep 30, 2024
1 parent f31050d commit 2ef2554
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions browser_tests/menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 2ef2554

Please sign in to comment.