Skip to content

Commit

Permalink
feat(webkit): roll to r2035 (#31308)
Browse files Browse the repository at this point in the history
  • Loading branch information
playwrightmachine committed Jun 14, 2024
1 parent a9200be commit cf85905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"name": "webkit",
"revision": "2033",
"revision": "2035",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446",
Expand Down
4 changes: 3 additions & 1 deletion tests/library/browsercontext-viewport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { devices } from '@playwright/test';
import { contextTest as it, expect } from '../config/browserTest';
import { browserTest } from '../config/browserTest';
import { verifyViewport } from '../config/utils';
import * as os from 'os';

it('should get the proper default viewport size', async ({ page, server }) => {
await verifyViewport(page, 1280, 720);
Expand Down Expand Up @@ -177,9 +178,10 @@ browserTest('should be able to get correct orientation angle on non-mobile devic
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.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 page = await context.newPage();
await page.goto(server.PREFIX + '/index.html');
Expand Down

0 comments on commit cf85905

Please sign in to comment.