fix(e2e): wait out the duplicate #asset-grid during navigation (#31088)
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user