test: wait for cache

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

View File

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