Skip to content

Commit 2d04fde

Browse files
committed
feat: update keyboard shortcut modifier tests
1 parent c5d3778 commit 2d04fde

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

test/specs/modifiers.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,18 @@ describe('modifiers', () => {
88

99
describe('are not blocked from activating keyboard shortcuts', () => {
1010
// TODO: find a way to test browser shortcuts blur the input (not currently working with chromedriver)
11-
typing('k').whileModifierPressed().shouldShow('');
12-
typing('m').whileModifierPressed().shouldShow('');
13-
typing('b').whileModifierPressed().shouldShow('');
14-
typing('l').whileModifierPressed().shouldShow('');
15-
typing('h').whileModifierPressed().shouldShow('');
11+
typing('k').whileModifierPressed().shouldShow('1,000');
12+
typing('m').whileModifierPressed().shouldShow('1,000,000');
13+
typing('b').whileModifierPressed().shouldShow('1,000,000,000');
1614

17-
typing('0').whileModifierPressed().shouldShow('');
18-
typing('1').whileModifierPressed().shouldShow('');
19-
typing('2').whileModifierPressed().shouldShow('');
20-
typing('3').whileModifierPressed().shouldShow('');
15+
typing('0').whileModifierPressed().shouldShow('0');
16+
typing('1').whileModifierPressed().shouldShow('1');
17+
typing('2').whileModifierPressed().shouldShow('2');
18+
typing('3').whileModifierPressed().shouldShow('3');
2119

22-
typing('-').whileModifierPressed().shouldShow('');
20+
typing('-').whileModifierPressed().shouldShow('-');
2321
typing('+').whileModifierPressed().shouldShow('');
24-
typing('.').whileModifierPressed().shouldShow('');
22+
typing('.').whileModifierPressed().shouldShow('.');
2523
typing(',').whileModifierPressed().shouldShow('');
2624
});
2725
});
28-
;

0 commit comments

Comments
 (0)