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:
snomiao
2025-09-02 05:12:59 +00:00
parent 83de398b21
commit a1f5a90c4d
3 changed files with 3 additions and 1 deletions

View File

@@ -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