[Refactor] Re-organize browser_tests directory (#3105)

This commit is contained in:
Chenlei Hu
2025-03-17 15:32:14 -04:00
committed by GitHub
parent 90053058ba
commit 8923ec51fd
165 changed files with 40 additions and 40 deletions

View File

@@ -0,0 +1,18 @@
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`)
})
})
})