This commit is contained in:
Max Schmitt 2024-09-09 11:28:52 +02:00
parent 468277f340
commit db081039b9

View file

@ -285,8 +285,8 @@ it.describe('page screenshot', () => {
await page.setViewportSize({ width: 500, height: 500 });
await page.goto(server.PREFIX + '/screenshots/canvas.html');
const screenshot = await page.screenshot();
const screenshotPrefix = browserName === 'chromium' && isMac && process.arch === 'arm64' ? '-macOS-arm64' : '';
expect(screenshot).toMatchSnapshot(`screenshot-canvas${screenshotPrefix}.png`);
const screenshotPathSuffix = (browserName === 'chromium' && isMac && process.arch === 'arm64') ? '-macOS-arm64' : '';
expect(screenshot).toMatchSnapshot(`screenshot-canvas${screenshotPathSuffix}.png`);
});
it('should capture canvas changes', async ({ page, isElectron, browserName, isMac, isWebView2 }) => {