Skip to content

Commit 7fdc69a

Browse files
authored
test: update keyboard input tests to use click instead of tap (#9761)
1 parent 570c0e9 commit 7fdc69a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/date-picker/test/keyboard-input.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,21 +193,21 @@ describe('keyboard', () => {
193193
expect(datePicker.hasAttribute('focused')).to.be.true;
194194
});
195195

196-
it('should move focus back to the input on Cancel button tap', async () => {
196+
it('should move focus back to the input on Cancel button click', async () => {
197197
// Move focus to the calendar
198198
await sendKeys({ press: 'ArrowDown' });
199199
await untilOverlayRendered(datePicker);
200200
const spy = sinon.spy(input, 'focus');
201-
tap(overlayContent._cancelButton);
201+
overlayContent._cancelButton.click();
202202
expect(spy.calledOnce).to.be.true;
203203
});
204204

205-
it('should move focus back to the input on Today button tap', async () => {
205+
it('should move focus back to the input on Today button click', async () => {
206206
// Move focus to the calendar
207207
await sendKeys({ press: 'ArrowDown' });
208208
await untilOverlayRendered(datePicker);
209209
const spy = sinon.spy(input, 'focus');
210-
tap(overlayContent._todayButton);
210+
overlayContent._todayButton.click();
211211
expect(spy.calledOnce).to.be.true;
212212
});
213213

0 commit comments

Comments
 (0)