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
feat(webkit): roll webkit to r1395 (#4550)
Joel Einbinder9c677f64e0e5
diff --git a/browsers.json b/browsers.jsonindex a4df9f1143..55f8a02460 100644--- a/browsers.json+++ b/browsers.json@@ -13,7 +13,7 @@},{"name": "webkit",- "revision": "1391",+ "revision": "1395","download": true}]diff --git a/test/browsercontext-viewport.spec.ts b/test/browsercontext-viewport.spec.tsindex bd059e455f..b0fa8c5c2c 100644--- a/test/browsercontext-viewport.spec.ts+++ b/test/browsercontext-viewport.spec.ts@@ -82,9 +82,7 @@ it('should emulate device height', async ({page, server}) => {expect(await page.evaluate(() => matchMedia('(device-height: 500px)').matches)).toBe(true);});-it('should emulate availWidth and availHeight', (test, { browserName, platform, headful }) => {- test.fail(browserName === 'webkit' && (platform !== 'linux' || headful), 'Not implemented');-}, async ({page}) => {+it('should emulate availWidth and availHeight', async ({page}) => {await page.setViewportSize({width: 500, height: 600});expect(await page.evaluate(() => window.screen.availWidth)).toBe(500);expect(await page.evaluate(() => window.screen.availHeight)).toBe(600);