Skip to content

Commit 6c97dd7

Browse files
test(picker): enable webkit tab navigation tests (#5833)
1 parent c568a7e commit 6c97dd7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

packages/picker/test/index.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,11 +1085,9 @@ export function runPickerTests(): void {
10851085
el.insertAdjacentElement('afterend', input);
10861086

10871087
el.focus();
1088-
if (!isWebKit()) {
1089-
await sendTabKey();
1090-
expect(document.activeElement).to.equal(input);
1091-
await sendShiftTabKey();
1092-
}
1088+
await sendTabKey();
1089+
expect(document.activeElement).to.equal(input);
1090+
await sendShiftTabKey();
10931091
expect(document.activeElement).to.equal(el);
10941092
const opened = oneEvent(el, 'sp-opened');
10951093
await sendKeys({ press: 'Enter' });
@@ -1124,11 +1122,9 @@ export function runPickerTests(): void {
11241122
el.insertAdjacentElement('afterend', input);
11251123

11261124
el.focus();
1127-
if (!isWebKit()) {
1128-
await sendTabKey();
1129-
expect(document.activeElement).to.equal(input);
1130-
await sendKeys({ press: 'Shift+Tab' });
1131-
}
1125+
await sendTabKey();
1126+
expect(document.activeElement).to.equal(input);
1127+
await sendKeys({ press: 'Shift+Tab' });
11321128
expect(document.activeElement).to.equal(el);
11331129
const opened = oneEvent(el, 'sp-opened');
11341130
await sendKeys({ down: 'Enter' });

0 commit comments

Comments
 (0)