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): bump to 1347 (#3955)
Yury Semikhatsky1d21c1e4bd60
diff --git a/browsers.json b/browsers.jsonindex 44c4fc2ee0..17cce0d9d4 100644--- a/browsers.json+++ b/browsers.json@@ -13,7 +13,7 @@},{"name": "webkit",- "revision": "1344",+ "revision": "1347","download": true}]diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.tsindex bd86bf7b6f..5c8d75b09d 100644--- a/src/server/webkit/protocol.ts+++ b/src/server/webkit/protocol.ts@@ -2463,6 +2463,10 @@ export module Protocol {*/export type setBreakpointForEventListenerParameters = {eventListenerId: EventListenerId;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: Debugger.BreakpointOptions;}export type setBreakpointForEventListenerReturnValue = {}@@ -2976,6 +2980,10 @@ might return multiple quads for inline nodes.* Type of the operation to stop upon.*/type: DOMBreakpointType;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: Debugger.BreakpointOptions;}export type setDOMBreakpointReturnValue = {}@@ -3003,6 +3011,10 @@ might return multiple quads for inline nodes.* The name of the specific event to stop on.*/eventName?: string;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: Debugger.BreakpointOptions;}export type setEventBreakpointReturnValue = {}@@ -3030,6 +3042,10 @@ might return multiple quads for inline nodes.* Whether the URL string is a regular expression.*/isRegex?: boolean;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: Debugger.BreakpointOptions;}export type setURLBreakpointReturnValue = {}@@ -3041,6 +3057,10 @@ might return multiple quads for inline nodes.* Resource URL substring. An empty string will stop pausing on all requests.*/url: string;+ /**+ * Whether the URL string is a regular expression.+ */+ isRegex?: boolean;}export type removeURLBreakpointReturnValue = {}@@ -3760,6 +3780,10 @@ might return multiple quads for inline nodes.*/export type setPauseOnDebuggerStatementsParameters = {enabled: boolean;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: BreakpointOptions;}export type setPauseOnDebuggerStatementsReturnValue = {}@@ -3771,6 +3795,10 @@ might return multiple quads for inline nodes.* Pause on exceptions mode.*/state: "none"|"uncaught"|"all";+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: BreakpointOptions;}export type setPauseOnExceptionsReturnValue = {}@@ -3779,6 +3807,10 @@ might return multiple quads for inline nodes.*/export type setPauseOnAssertionsParameters = {enabled: boolean;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: BreakpointOptions;}export type setPauseOnAssertionsReturnValue = {}@@ -3787,6 +3819,10 @@ might return multiple quads for inline nodes.*/export type setPauseOnMicrotasksParameters = {enabled: boolean;+ /**+ * Options to apply to this breakpoint to modify its behavior.+ */+ options?: BreakpointOptions;}export type setPauseOnMicrotasksReturnValue = {}@@ -4515,15 +4551,6 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.object: Runtime.RemoteObject;hints: { [key: string]: string };}- /**- * Fired when the backend has alternate domains that need to be activated.- */- export type activateExtraDomainsPayload = {- /**- * Domain names that need activation- */- domains: string[];- }/*** Enables inspector domain notifications.@@ -6436,10 +6463,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.* Forces the given appearance for the page.*/export type setForcedAppearanceParameters = {- /**- * Appearance name to force. Empty string disables the override.- */- appearance: Appearance;+ appearance?: Appearance;}export type setForcedAppearanceReturnValue = {}@@ -8359,7 +8383,6 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0."Heap.trackingComplete": Heap.trackingCompletePayload;"Inspector.evaluateForTestInFrontend": Inspector.evaluateForTestInFrontendPayload;"Inspector.inspect": Inspector.inspectPayload;- "Inspector.activateExtraDomains": Inspector.activateExtraDomainsPayload;"LayerTree.layerTreeDidChange": LayerTree.layerTreeDidChangePayload;"Memory.memoryPressure": Memory.memoryPressurePayload;"Memory.trackingStart": Memory.trackingStartPayload;diff --git a/test/dispatchevent.spec.ts b/test/dispatchevent.spec.tsindex 544d8a1b96..a811e2193d 100644--- a/test/dispatchevent.spec.ts+++ b/test/dispatchevent.spec.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import { it, expect, options } from './playwright.fixtures';+import { it, expect } from './playwright.fixtures';it('should dispatch click event', async ({page, server}) => {await page.goto(server.PREFIX + '/input/button.html');@@ -125,9 +125,7 @@ it('should be atomic', async ({playwright, page}) => {expect(await page.evaluate(() => window['_clicked'])).toBe(true);});-it('should dispatch drag drop events', (test, parameters) => {- test.fail(options.WEBKIT(parameters));-}, async ({page, server}) => {+it('should dispatch drag drop events', async ({page, server}) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const dataTransfer = await page.evaluateHandle(() => new DataTransfer());await page.dispatchEvent('#source', 'dragstart', { dataTransfer });@@ -139,9 +137,7 @@ it('should dispatch drag drop events', (test, parameters) => {}, {source, target})).toBeTruthy();});-it('should dispatch drag drop events', (test, parameters) => {- test.fail(options.WEBKIT(parameters));-}, async ({page, server}) => {+it('should dispatch drag drop events', async ({page, server}) => {await page.goto(server.PREFIX + '/drag-n-drop.html');const dataTransfer = await page.evaluateHandle(() => new DataTransfer());const source = await page.$('#source');