From 30382bebbc3af56338a74b897662d9e6b6298dcb Mon Sep 17 00:00:00 2001 From: Oleksii Dubok Date: Mon, 9 Jan 2023 22:01:57 +0100 Subject: [PATCH 1/2] fix: navigation key names --- packages/test-utils/src/create-dom-event.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/test-utils/src/create-dom-event.js b/packages/test-utils/src/create-dom-event.js index 47632ff1e..738b44c19 100644 --- a/packages/test-utils/src/create-dom-event.js +++ b/packages/test-utils/src/create-dom-event.js @@ -32,10 +32,10 @@ const w3cKeys = { esc: 'Esc', escape: 'Escape', space: ' ', - up: 'Up', - left: 'Left', - right: 'Right', - down: 'Down', + up: 'ArrowUp', + left: 'ArrowLeft', + right: 'ArrowRight', + down: 'ArrowDown', end: 'End', home: 'Home', backspace: 'Backspace', From 4ee42fdeacf7d24d77615419fe1a5b2d22efa240 Mon Sep 17 00:00:00 2001 From: Oleksii Dubok Date: Mon, 9 Jan 2023 22:42:49 +0100 Subject: [PATCH 2/2] chore: update test --- test/specs/wrapper/trigger.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/specs/wrapper/trigger.spec.js b/test/specs/wrapper/trigger.spec.js index 509c48892..1c445bfb2 100644 --- a/test/specs/wrapper/trigger.spec.js +++ b/test/specs/wrapper/trigger.spec.js @@ -119,10 +119,10 @@ describeWithShallowAndMount('trigger', mountingMethod => { esc: 'Esc', escape: 'Escape', space: ' ', - up: 'Up', - left: 'Left', - right: 'Right', - down: 'Down', + up: 'ArrowUp', + left: 'ArrowLeft', + right: 'ArrowRight', + down: 'ArrowDown', end: 'End', home: 'Home', backspace: 'Backspace',