mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
feat(webkit): roll to r2035 (#31308)
This commit is contained in:
parent
a9200be0af
commit
cf85905f44
@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webkit",
|
"name": "webkit",
|
||||||
"revision": "2033",
|
"revision": "2035",
|
||||||
"installByDefault": true,
|
"installByDefault": true,
|
||||||
"revisionOverrides": {
|
"revisionOverrides": {
|
||||||
"mac10.14": "1446",
|
"mac10.14": "1446",
|
||||||
|
|||||||
@ -19,6 +19,7 @@ import { devices } from '@playwright/test';
|
|||||||
import { contextTest as it, expect } from '../config/browserTest';
|
import { contextTest as it, expect } from '../config/browserTest';
|
||||||
import { browserTest } from '../config/browserTest';
|
import { browserTest } from '../config/browserTest';
|
||||||
import { verifyViewport } from '../config/utils';
|
import { verifyViewport } from '../config/utils';
|
||||||
|
import * as os from 'os';
|
||||||
|
|
||||||
it('should get the proper default viewport size', async ({ page, server }) => {
|
it('should get the proper default viewport size', async ({ page, server }) => {
|
||||||
await verifyViewport(page, 1280, 720);
|
await verifyViewport(page, 1280, 720);
|
||||||
@ -177,9 +178,10 @@ browserTest('should be able to get correct orientation angle on non-mobile devic
|
|||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set window.screen.orientation.type for mobile devices', async ({ contextFactory, browserName, server }) => {
|
it('should set window.screen.orientation.type for mobile devices', async ({ contextFactory, browserName, server, isMac }) => {
|
||||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31151' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31151' });
|
||||||
it.skip(browserName === 'firefox', 'Firefox does not support mobile emulation');
|
it.skip(browserName === 'firefox', 'Firefox does not support mobile emulation');
|
||||||
|
it.skip(isMac && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS 12 is frozen and does not support orientation.type override');
|
||||||
const context = await contextFactory(devices['iPhone 14']);
|
const context = await contextFactory(devices['iPhone 14']);
|
||||||
const page = await context.newPage();
|
const page = await context.newPage();
|
||||||
await page.goto(server.PREFIX + '/index.html');
|
await page.goto(server.PREFIX + '/index.html');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user