mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 15:54:09 +00:00
fix: Fix flaky audio widget Playwright test
- Add timestamp to test usernames to prevent duplicate user conflicts - Add stabilization wait before screenshot capture - Update audio widget snapshot to match current UI layout Fixes test failure in widget.spec.ts:313 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1608,7 +1608,8 @@ export const comfyPageFixture = base.extend<{
|
||||
const comfyPage = new ComfyPage(page, request)
|
||||
|
||||
const { parallelIndex } = testInfo
|
||||
const username = `playwright-test-${parallelIndex}`
|
||||
const timestamp = Date.now()
|
||||
const username = `playwright-test-${parallelIndex}-${timestamp}`
|
||||
const userId = await comfyPage.setupUser(username)
|
||||
comfyPage.userIds[parallelIndex] = userId
|
||||
|
||||
|
||||
@@ -312,6 +312,7 @@ test.describe('Animated image widget', () => {
|
||||
test.describe('Load audio widget', () => {
|
||||
test('Can load audio', async ({ comfyPage }) => {
|
||||
await comfyPage.loadWorkflow('widgets/load_audio_widget')
|
||||
await comfyPage.page.waitForTimeout(500)
|
||||
await expect(comfyPage.canvas).toHaveScreenshot('load_audio_widget.png')
|
||||
})
|
||||
})
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user