test: add extra refresh
parent
6707050883
commit
2e7baa05ab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue