From 59cbdaf0c220c56f9a41736c29c41d686982842a Mon Sep 17 00:00:00 2001 From: Waldemar Penner Date: Mon, 27 Jan 2020 08:47:13 +0100 Subject: [PATCH] fix(event-construction): use CustomEvent constructor --- packages/driver/src/cy/keyboard.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/driver/src/cy/keyboard.ts b/packages/driver/src/cy/keyboard.ts index 658633b1efbf..303b91a41b5b 100644 --- a/packages/driver/src/cy/keyboard.ts +++ b/packages/driver/src/cy/keyboard.ts @@ -901,10 +901,7 @@ export class Keyboard { // or is IE } else { - // For some reason we can't set certain props on Keyboard Events in chrome < 63. - // So we'll use the plain Event constructor - // event = new win[eventConstructor](eventType, eventOptions) - event = new win['Event'](eventType, eventOptions) + event = new CustomEvent(eventType, eventOptions) _.extend(event, eventOptions) }