File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/date-picker/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments