fix(e2e): wait out the duplicate #asset-grid during navigation (#31088)

This commit is contained in:
bo0tzz
2026-08-28 12:45:13 +02:00
committed by GitHub
parent 1a8fcf1b9f
commit 6b478924b2
+1
View File
@@ -132,6 +132,7 @@ export const timelineUtils = {
return page.locator('#asset-grid'); return page.locator('#asset-grid');
}, },
async waitForTimelineLoad(page: Page) { async waitForTimelineLoad(page: Page) {
await expect(timelineUtils.locator(page)).toHaveCount(1);
await expect(timelineUtils.locator(page)).toBeInViewport(); await expect(timelineUtils.locator(page)).toBeInViewport();
await expect.poll(() => thumbnailUtils.locator(page).count()).toBeGreaterThan(0); await expect.poll(() => thumbnailUtils.locator(page).count()).toBeGreaterThan(0);
}, },