Skip to content

High performance self-hosted photo and video management solution.

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

bo0tzz6b478924b257
diff --git a/e2e/src/ui/specs/timeline/utils.ts b/e2e/src/ui/specs/timeline/utils.ts
index 986f794fb6..96cdbc00b8 100644
--- a/e2e/src/ui/specs/timeline/utils.ts
+++ b/e2e/src/ui/specs/timeline/utils.ts
@@ -132,6 +132,7 @@ export const timelineUtils = {
return page.locator('#asset-grid');
},
async waitForTimelineLoad(page: Page) {
+ await expect(timelineUtils.locator(page)).toHaveCount(1);
await expect(timelineUtils.locator(page)).toBeInViewport();
await expect.poll(() => thumbnailUtils.locator(page).count()).toBeGreaterThan(0);
},