mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-30 12:59:55 +00:00
19 lines
519 B
TypeScript
19 lines
519 B
TypeScript
import { expect } from '@playwright/test'
|
|
|
|
import { comfyPageFixture as test } from './fixtures/ComfyPage'
|
|
|
|
test.describe('Load Workflow in Media', () => {
|
|
;[
|
|
'workflow.webp',
|
|
'edited_workflow.webp',
|
|
'no_workflow.webp',
|
|
'large_workflow.webp',
|
|
'workflow.webm'
|
|
].forEach(async (fileName) => {
|
|
test(`Load workflow in ${fileName}`, async ({ comfyPage }) => {
|
|
await comfyPage.dragAndDropFile(fileName)
|
|
await expect(comfyPage.canvas).toHaveScreenshot(`${fileName}.png`)
|
|
})
|
|
})
|
|
})
|