Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fail canvas test on MacOS 11 and less (#12131)
Andrey Lushnikov65697d64be17
diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.tsindex 00926951c2..e4b560a20b 100644--- a/tests/page/page-screenshot.spec.ts+++ b/tests/page/page-screenshot.spec.ts@@ -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(() => {