We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02617e9 commit 535b25cCopy full SHA for 535b25c
test/compare-images.test.ts
@@ -45,8 +45,10 @@ test(
45
test(
46
'should compare viewport screenshots',
47
setupTest(async (page, browser) => {
48
+ await page.waitForJsTimers();
49
const firstResult = await page.captureViewport();
50
await browser.refresh();
51
52
const secondResult = await page.captureViewport();
53
await expect(cropAndCompare(firstResult, secondResult)).resolves.toEqual({
54
firstImage: expect.any(Buffer),
0 commit comments