test: fix test that gave 2 pixel screenshot diff on Linux (#12671)
This commit is contained in:
parent
b51157bdea
commit
1dc581c1a0
|
|
@ -728,8 +728,12 @@ it.describe('page screenshot animations', () => {
|
|||
page.screenshot({ fonts: 'ready' }),
|
||||
server.serveFile(serverRequest, serverResponse),
|
||||
]);
|
||||
expect(iconsScreenshot).toMatchSnapshot('screenshot-web-font.png');
|
||||
expect(noIconsScreenshot).not.toMatchSnapshot('screenshot-web-font.png');
|
||||
expect(iconsScreenshot).toMatchSnapshot('screenshot-web-font.png', {
|
||||
maxDiffPixels: 3,
|
||||
});
|
||||
expect(noIconsScreenshot).not.toMatchSnapshot('screenshot-web-font.png', {
|
||||
maxDiffPixels: 3,
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue