test: fail canvas test on MacOS 11 and less (#12131)

This commit is contained in:
Andrey Lushnikov 2022-02-15 15:00:26 -07:00 committed by GitHub
parent 7789d0b73f
commit 65697d64be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import { test as it, expect } from './pageTest';
import { verifyViewport, attachFrame } from '../config/utils';
import path from 'path';
import fs from 'fs';
import os from 'os';
it.describe('page screenshot', () => {
it.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');
@ -188,7 +189,8 @@ it.describe('page screenshot', () => {
expect(screenshot).toMatchSnapshot('screenshot-canvas.png', { threshold: 0.4 });
});
it('should capture canvas changes', async ({ page, isElectron }) => {
it('should capture canvas changes', async ({ page, isElectron, browserName, isMac }) => {
it.fail(browserName === 'webkit' && isMac && parseInt(os.release(), 10) <= 20, 'https://github.com/microsoft/playwright/issues/8796');
it.skip(isElectron);
await page.goto('data:text/html,<canvas></canvas>');
await page.evaluate(() => {