test: wait for cache

old-stable24
Varun Patil 2022-10-16 18:22:09 -07:00
parent 3d4ace8b33
commit 0d7f1fbf39
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ test.describe('Open', () => {
// refresh page
await page.reload();
await page.waitForTimeout(4000); // cache
await page.waitForSelector('img[src*="core/preview"]');
expect(await page.locator(`img[src="${src1}"]`).count()).toBe(0);
expect(await page.locator(`img[src="${src2}"]`).count()).toBe(0);