Update expectations
This commit is contained in:
parent
0defa7bd7e
commit
9122dc4955
|
|
@ -57,7 +57,7 @@ it('Safari Desktop', async ({ browser, browserName, platform, server, headless }
|
|||
expected.publickeycredential = false;
|
||||
expected.mediastream = false;
|
||||
if (headless)
|
||||
expected.todataurljpeg = false;
|
||||
expected.todataurlwebp = true;
|
||||
|
||||
// GHA
|
||||
delete actual.variablefonts;
|
||||
|
|
@ -124,7 +124,7 @@ it('Mobile Safari', async ({ playwright, browser, browserName, platform, server,
|
|||
expected.publickeycredential = false;
|
||||
expected.mediastream = false;
|
||||
if (headless)
|
||||
expected.todataurljpeg = false;
|
||||
expected.todataurlwebp = true;
|
||||
|
||||
// GHA
|
||||
delete actual.variablefonts;
|
||||
|
|
|
|||
|
|
@ -280,12 +280,13 @@ it.describe('page screenshot', () => {
|
|||
expect(screenshot).toMatchSnapshot('screenshot-clip-odd-size.png');
|
||||
});
|
||||
|
||||
it('should work for canvas', async ({ page, server, isElectron, isMac, macVersion, browserName, headless }) => {
|
||||
it('should work for canvas', async ({ page, server, isElectron, isMac, isLinux, macVersion, browserName, headless }) => {
|
||||
it.fixme(isElectron && isMac, 'Fails on the bots');
|
||||
await page.setViewportSize({ width: 500, height: 500 });
|
||||
await page.goto(server.PREFIX + '/screenshots/canvas.html');
|
||||
const screenshot = await page.screenshot();
|
||||
if (!headless && browserName === 'chromium' && isMac && os.arch() === 'arm64' && macVersion >= 14)
|
||||
if ((!headless && browserName === 'chromium' && isMac && os.arch() === 'arm64' && macVersion >= 14) ||
|
||||
(browserName === 'webkit' && isLinux))
|
||||
expect(screenshot).toMatchSnapshot('screenshot-canvas-with-accurate-corners.png');
|
||||
else
|
||||
expect(screenshot).toMatchSnapshot('screenshot-canvas.png');
|
||||
|
|
|
|||
Loading…
Reference in a new issue