add threshold

This commit is contained in:
Simon Knott 2024-11-13 15:27:58 +01:00
parent 690ca79064
commit b918f13f60
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -1538,7 +1538,7 @@ test('canvas clipping with overlaying element', { annotation: [{ type: 'issue',
}); });
const snapshot = await traceViewer.snapshotFrame('page.evaluate'); const snapshot = await traceViewer.snapshotFrame('page.evaluate');
await expect(snapshot.owner()).toHaveScreenshot(); await expect(snapshot.owner()).toHaveScreenshot({ threshold: 0.05 });
}); });
test('should show only one pointer with multilevel iframes', async ({ page, runAndTrace, server, browserName }) => { test('should show only one pointer with multilevel iframes', async ({ page, runAndTrace, server, browserName }) => {