mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: update macos 12 test expectations (#16223)
This commit is contained in:
parent
37f9500efa
commit
165ab9bfa9
@ -30,7 +30,7 @@ async function checkFeatures(name: string, context: any, server: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
it('safari-14-1', async ({ browser, browserName, platform, server, headless }) => {
|
it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMac }) => {
|
||||||
it.skip(browserName !== 'webkit');
|
it.skip(browserName !== 'webkit');
|
||||||
it.skip(browserName === 'webkit' && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen.');
|
it.skip(browserName === 'webkit' && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen.');
|
||||||
const context = await browser.newContext({
|
const context = await browser.newContext({
|
||||||
@ -70,10 +70,14 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless }) =
|
|||||||
expected.inputtypes['datetime-local'] = false;
|
expected.inputtypes['datetime-local'] = false;
|
||||||
expected.inputtypes.time = false;
|
expected.inputtypes.time = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isMac && parseInt(os.release(), 10) > 20)
|
||||||
|
expected.applicationcache = false;
|
||||||
|
|
||||||
expect(actual).toEqual(expected);
|
expect(actual).toEqual(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, server, headless }) => {
|
it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, isMac, server, headless }) => {
|
||||||
it.skip(browserName !== 'webkit');
|
it.skip(browserName !== 'webkit');
|
||||||
it.skip(browserName === 'webkit' && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen.');
|
it.skip(browserName === 'webkit' && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen.');
|
||||||
const iPhone = playwright.devices['iPhone 12'];
|
const iPhone = playwright.devices['iPhone 12'];
|
||||||
@ -125,6 +129,9 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, se
|
|||||||
expected.inputtypes.time = false;
|
expected.inputtypes.time = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isMac && parseInt(os.release(), 10) > 20)
|
||||||
|
expected.applicationcache = false;
|
||||||
|
|
||||||
expect(actual).toEqual(expected);
|
expect(actual).toEqual(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,6 @@ import { verifyViewport, attachFrame } from '../config/utils';
|
|||||||
import type { Route } from 'playwright-core';
|
import type { Route } from 'playwright-core';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import os from 'os';
|
|
||||||
|
|
||||||
it.describe('page screenshot', () => {
|
it.describe('page screenshot', () => {
|
||||||
it.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');
|
it.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');
|
||||||
@ -231,7 +230,7 @@ it.describe('page screenshot', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should capture canvas changes', async ({ page, isElectron, browserName, isMac }) => {
|
it('should capture canvas changes', async ({ page, isElectron, browserName, isMac }) => {
|
||||||
it.fixme(browserName === 'webkit' && isMac && parseInt(os.release(), 10) < 21, 'https://github.com/microsoft/playwright/issues/8796,https://github.com/microsoft/playwright/issues/16180');
|
it.fixme(browserName === 'webkit' && isMac, 'https://github.com/microsoft/playwright/issues/8796,https://github.com/microsoft/playwright/issues/16180');
|
||||||
it.skip(isElectron);
|
it.skip(isElectron);
|
||||||
await page.goto('data:text/html,<canvas></canvas>');
|
await page.goto('data:text/html,<canvas></canvas>');
|
||||||
await page.evaluate(() => {
|
await page.evaluate(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user