Skip to content

Commit 6a7d874

Browse files
committed
placeholder cypress test, default tab switch hotkeys shift+numeric
1 parent 0c4f01c commit 6a7d874

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
describe("Test default keyboard shortcuts", () => {
2+
it.skip("should be able to navigate to label tab with default shortcut", () => {
3+
cy.visit("http://localhost:6001")
4+
5+
cy.contains("New File").click()
6+
7+
cy.wait(500)
8+
9+
// TODO this doesn't trigger hot keys for some reason, I'm not sure how
10+
// good the support for testing keyboard shortcuts in cypress is
11+
cy.get("body").trigger("keydown", {
12+
keyCode: 51,
13+
release: false,
14+
location: 0,
15+
which: 51,
16+
key: "3",
17+
code: "Digit3",
18+
})
19+
20+
cy.contains("Percent Complete")
21+
})
22+
})

src/components/HotkeyStorage/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ export const defaultHotkeys = [
66
{
77
id: "switch_to_label",
88
description: "Go to Labels Tab",
9-
binding: "shift+l",
9+
binding: "shift+3",
1010
},
1111
{
1212
id: "switch_to_setup",
1313
description: "Go to Setup Tab",
14+
binding: "shift+1",
1415
},
1516
{
1617
id: "switch_to_samples",
1718
description: "Go to Samples Tab",
19+
binding: "shift+2",
1820
},
1921
{
2022
id: "select_tool",

0 commit comments

Comments
 (0)