Add Playwright test

This commit is contained in:
christian-byrne
2024-09-25 12:21:37 -07:00
committed by Chenlei Hu
parent 0b7c1609fd
commit 2b2b1cdb85

View File

@@ -23,4 +23,10 @@ test.describe('Optional input', () => {
await comfyPage.loadWorkflow('force_input')
await expect(comfyPage.canvas).toHaveScreenshot('force_input.png')
})
test('Only optional inputs', async ({ comfyPage }) => {
await comfyPage.loadWorkflow('only_optional_inputs')
expect(await comfyPage.getGraphNodesCount()).toBe(1)
expect(comfyPage.page.locator('.comfy-missing-nodes')).not.toBeVisible()
})
})