@@ -172,7 +172,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
172172 config
173173 ) ;
174174
175- // Test focus with keyboard navigation.
175+ // Test focus with keyboard navigation
176176 await pageUtils . pressKeys ( 'Tab' ) ;
177177
178178 const item = page . locator ( 'ion-item' ) ;
@@ -190,17 +190,17 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
190190
191191 const ionFocus = await page . spyOnEvent ( 'ionFocus' ) ;
192192
193- // Test focus with keyboard navigation.
193+ // Test focus with keyboard navigation
194194 await pageUtils . pressKeys ( 'Tab' ) ;
195195
196196 expect ( ionFocus ) . toHaveReceivedEventTimes ( 1 ) ;
197197
198- // Reset focus.
198+ // Reset focus
199199 const checkbox = page . locator ( 'ion-checkbox' ) ;
200200 const checkboxBoundingBox = ( await checkbox . boundingBox ( ) ) ! ;
201201 await page . mouse . click ( 0 , checkboxBoundingBox . height + 1 ) ;
202202
203- // Test focus with click.
203+ // Test focus with click
204204 await checkbox . click ( ) ;
205205
206206 expect ( ionFocus ) . toHaveReceivedEventTimes ( 2 ) ;
@@ -218,27 +218,27 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
218218
219219 const ionFocus = await page . spyOnEvent ( 'ionFocus' ) ;
220220
221- // Test focus with keyboard navigation.
221+ // Test focus with keyboard navigation
222222 await pageUtils . pressKeys ( 'Tab' ) ;
223223
224224 expect ( ionFocus ) . toHaveReceivedEventTimes ( 1 ) ;
225225
226- // Verify that the event target is the checkbox and not the item.
226+ // Verify that the event target is the checkbox and not the item
227227 const eventByKeyboard = ionFocus . events [ 0 ] ;
228228 expect ( ( eventByKeyboard . target as HTMLElement ) . tagName . toLowerCase ( ) ) . toBe ( 'ion-checkbox' ) ;
229229
230- // Reset focus.
230+ // Reset focus
231231 const checkbox = page . locator ( 'ion-checkbox' ) ;
232232 const checkboxBoundingBox = ( await checkbox . boundingBox ( ) ) ! ;
233233 await page . mouse . click ( 0 , checkboxBoundingBox . height + 1 ) ;
234234
235- // Test focus with click.
235+ // Test focus with click
236236 const item = page . locator ( 'ion-item' ) ;
237237 await item . click ( ) ;
238238
239239 expect ( ionFocus ) . toHaveReceivedEventTimes ( 2 ) ;
240240
241- // Verify that the event target is the checkbox and not the item.
241+ // Verify that the event target is the checkbox and not the item
242242 const eventByClick = ionFocus . events [ 0 ] ;
243243 expect ( ( eventByClick . target as HTMLElement ) . tagName . toLowerCase ( ) ) . toBe ( 'ion-checkbox' ) ;
244244 } ) ;
@@ -270,19 +270,19 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
270270
271271 const ionBlur = await page . spyOnEvent ( 'ionBlur' ) ;
272272
273- // Test blur with keyboard navigation.
274- // Focus the checkbox.
273+ // Test blur with keyboard navigation
274+ // Focus the checkbox
275275 await pageUtils . pressKeys ( 'Tab' ) ;
276- // Blur the checkbox.
276+ // Blur the checkbox
277277 await pageUtils . pressKeys ( 'Tab' ) ;
278278
279279 expect ( ionBlur ) . toHaveReceivedEventTimes ( 1 ) ;
280280
281- // Test blur with click.
281+ // Test blur with click
282282 const checkbox = page . locator ( 'ion-checkbox' ) ;
283- // Focus the checkbox.
283+ // Focus the checkbox
284284 await checkbox . click ( ) ;
285- // Blur the checkbox by clicking outside of it.
285+ // Blur the checkbox by clicking outside of it
286286 const checkboxBoundingBox = ( await checkbox . boundingBox ( ) ) ! ;
287287 await page . mouse . click ( 0 , checkboxBoundingBox . height + 1 ) ;
288288
@@ -301,28 +301,28 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
301301
302302 const ionBlur = await page . spyOnEvent ( 'ionBlur' ) ;
303303
304- // Test blur with keyboard navigation.
305- // Focus the checkbox.
304+ // Test blur with keyboard navigation
305+ // Focus the checkbox
306306 await pageUtils . pressKeys ( 'Tab' ) ;
307- // Blur the checkbox.
307+ // Blur the checkbox
308308 await pageUtils . pressKeys ( 'Tab' ) ;
309309
310310 expect ( ionBlur ) . toHaveReceivedEventTimes ( 1 ) ;
311311
312- // Verify that the event target is the checkbox and not the item.
312+ // Verify that the event target is the checkbox and not the item
313313 const event = ionBlur . events [ 0 ] ;
314314 expect ( ( event . target as HTMLElement ) . tagName . toLowerCase ( ) ) . toBe ( 'ion-checkbox' ) ;
315315
316- // Test blur with click.
316+ // Test blur with click
317317 const item = page . locator ( 'ion-item' ) ;
318318 await item . click ( ) ;
319- // Blur the checkbox by clicking outside of it.
319+ // Blur the checkbox by clicking outside of it
320320 const itemBoundingBox = ( await item . boundingBox ( ) ) ! ;
321321 await page . mouse . click ( 0 , itemBoundingBox . height + 1 ) ;
322322
323323 expect ( ionBlur ) . toHaveReceivedEventTimes ( 2 ) ;
324324
325- // Verify that the event target is the checkbox and not the item.
325+ // Verify that the event target is the checkbox and not the item
326326 const eventByClick = ionBlur . events [ 0 ] ;
327327 expect ( ( eventByClick . target as HTMLElement ) . tagName . toLowerCase ( ) ) . toBe ( 'ion-checkbox' ) ;
328328 } ) ;
0 commit comments