Skip to content

Commit

Permalink
test: rebase golden snapshots on Chromium macOS arm64 (#31344)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jun 18, 2024
1 parent dbc54c7 commit 0241687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/page/page-screenshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0241687

Please sign in to comment.