mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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…
x
Reference in New Issue
Block a user