Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat(webkit): bump to 1357 (#4154)

Joel Einbinder86ef956b4b16
diff --git a/browsers.json b/browsers.json
index 1ae7cfccf5..356d9c9810 100644
--- a/browsers.json
+++ b/browsers.json
@@ -13,7 +13,7 @@
},
{
"name": "webkit",
- "revision": "1353",
+ "revision": "1357",
"download": true
}
]
diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.ts
index 5c8d75b09d..7176471b07 100644
--- a/src/server/webkit/protocol.ts
+++ b/src/server/webkit/protocol.ts
@@ -4540,6 +4540,27 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
}
export type dispatchMouseEventReturnValue = {
}
+ /**
+ * Dispatches a tap event to the page.
+ */
+ export type dispatchTapEventParameters = {
+ /**
+ * X coordinate of the event relative to the main frame's viewport in CSS pixels.
+ */
+ x: number;
+ /**
+ * Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
+the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
+ */
+ y: number;
+ /**
+ * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
+(default: 0).
+ */
+ modifiers?: number;
+ }
+ export type dispatchTapEventReturnValue = {
+ }
}
export module Inspector {
@@ -8607,6 +8628,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreParameters;
"Input.dispatchKeyEvent": Input.dispatchKeyEventParameters;
"Input.dispatchMouseEvent": Input.dispatchMouseEventParameters;
+ "Input.dispatchTapEvent": Input.dispatchTapEventParameters;
"Inspector.enable": Inspector.enableParameters;
"Inspector.disable": Inspector.disableParameters;
"Inspector.initialized": Inspector.initializedParameters;
@@ -8890,6 +8912,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreReturnValue;
"Input.dispatchKeyEvent": Input.dispatchKeyEventReturnValue;
"Input.dispatchMouseEvent": Input.dispatchMouseEventReturnValue;
+ "Input.dispatchTapEvent": Input.dispatchTapEventReturnValue;
"Inspector.enable": Inspector.enableReturnValue;
"Inspector.disable": Inspector.disableReturnValue;
"Inspector.initialized": Inspector.initializedReturnValue;
diff --git a/test/browsercontext-viewport-mobile.spec.ts b/test/browsercontext-viewport-mobile.spec.ts
index a5ea4be503..ef8e20ca57 100644
--- a/test/browsercontext-viewport-mobile.spec.ts
+++ b/test/browsercontext-viewport-mobile.spec.ts
@@ -131,8 +131,8 @@ describe('mobile viewport', (suite, { browserName }) => {
await context.close();
});
- it('should emulate the hover media feature', (test, { browserName }) => {
- test.fail(browserName === 'webkit');
+ it('should emulate the hover media feature', (test, { browserName, platform }) => {
+ test.fail(browserName === 'webkit' && platform === 'darwin');
}, async ({playwright, browser}) => {
const iPhone = playwright.devices['iPhone 6'];
const mobilepage = await browser.newPage({ ...iPhone });