test: add extra refresh

cap
Varun Patil 2022-12-07 15:50:51 -08:00
parent 6707050883
commit 2e7baa05ab
1 changed files with 2 additions and 0 deletions

View File

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