fix: e2e test

This commit is contained in:
Jin Yi
2026-03-17 16:55:51 +09:00
parent c16e0cc1ed
commit 6c699924d6

View File

@@ -29,10 +29,10 @@ test.describe('ResultGallery', { tag: ['@slow'] }, () => {
.locator('.sidebar-content-container')
.waitFor({ state: 'visible' })
// Wait for asset card with image to appear (may need a refresh cycle)
// Wait for any asset card to appear (may contain img or video)
const assetCard = comfyPage.page
.locator('[role="button"]')
.filter({ has: comfyPage.page.locator('img') })
.filter({ has: comfyPage.page.locator('img, video') })
.first()
await expect(assetCard).toBeVisible({ timeout: 30_000 })