test: rebase golden snapshots on Chromium macOS arm64 (#31344)

This commit is contained in:
Max Schmitt 2024-06-18 19:09:24 +02:00 committed by GitHub
parent dbc54c763d
commit 02416877da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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 }) => {
it('should work for canvas', async ({ page, server, isElectron, isMac, browserName }) => {
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();
expect(screenshot).toMatchSnapshot('screenshot-canvas.png');
const screenshotPrefix = browserName === 'chromium' && isMac && process.arch === 'arm64' ? '-macOS-arm64' : '';
expect(screenshot).toMatchSnapshot(`screenshot-canvas${screenshotPrefix}.png`);
});
it('should capture canvas changes', async ({ page, isElectron, browserName, isMac, isWebView2 }) => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB