Skip to content

Commit a7a218e

Browse files
committed
test(checkbox, toggle): remove periods
1 parent 1a411f0 commit a7a218e

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

core/src/components/checkbox/test/basic/checkbox.e2e.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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
});

core/src/components/toggle/test/basic/toggle.e2e.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
129129
config
130130
);
131131

132-
// Test focus with keyboard navigation.
132+
// Test focus with keyboard navigation
133133
await pageUtils.pressKeys('Tab');
134134

135135
const item = page.locator('ion-item');
@@ -147,17 +147,17 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
147147

148148
const ionFocus = await page.spyOnEvent('ionFocus');
149149

150-
// Test focus with keyboard navigation.
150+
// Test focus with keyboard navigation
151151
await pageUtils.pressKeys('Tab');
152152

153153
expect(ionFocus).toHaveReceivedEventTimes(1);
154154

155-
// Reset focus.
155+
// Reset focus
156156
const toggle = page.locator('ion-toggle');
157157
const toggleBoundingBox = (await toggle.boundingBox())!;
158158
await page.mouse.click(0, toggleBoundingBox.height + 1);
159159

160-
// Test focus with click.
160+
// Test focus with click
161161
await toggle.click();
162162

163163
expect(ionFocus).toHaveReceivedEventTimes(2);
@@ -175,27 +175,27 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
175175

176176
const ionFocus = await page.spyOnEvent('ionFocus');
177177

178-
// Test focus with keyboard navigation.
178+
// Test focus with keyboard navigation
179179
await pageUtils.pressKeys('Tab');
180180

181181
expect(ionFocus).toHaveReceivedEventTimes(1);
182182

183-
// Verify that the event target is the toggle and not the item.
183+
// Verify that the event target is the toggle and not the item
184184
const eventByKeyboard = ionFocus.events[0];
185185
expect((eventByKeyboard.target as HTMLElement).tagName.toLowerCase()).toBe('ion-toggle');
186186

187-
// Reset focus.
187+
// Reset focus
188188
const toggle = page.locator('ion-toggle');
189189
const toggleBoundingBox = (await toggle.boundingBox())!;
190190
await page.mouse.click(0, toggleBoundingBox.height + 1);
191191

192-
// Test focus with click.
192+
// Test focus with click
193193
const item = page.locator('ion-item');
194194
await item.click();
195195

196196
expect(ionFocus).toHaveReceivedEventTimes(2);
197197

198-
// Verify that the event target is the toggle and not the item.
198+
// Verify that the event target is the toggle and not the item
199199
const eventByClick = ionFocus.events[0];
200200
expect((eventByClick.target as HTMLElement).tagName.toLowerCase()).toBe('ion-toggle');
201201
});
@@ -227,19 +227,19 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
227227

228228
const ionBlur = await page.spyOnEvent('ionBlur');
229229

230-
// Test blur with keyboard navigation.
231-
// Focus the toggle.
230+
// Test blur with keyboard navigation
231+
// Focus the toggle
232232
await pageUtils.pressKeys('Tab');
233-
// Blur the toggle.
233+
// Blur the toggle
234234
await pageUtils.pressKeys('Tab');
235235

236236
expect(ionBlur).toHaveReceivedEventTimes(1);
237237

238-
// Test blur with click.
238+
// Test blur with click
239239
const toggle = page.locator('ion-toggle');
240-
// Focus the toggle.
240+
// Focus the toggle
241241
await toggle.click();
242-
// Blur the toggle by clicking outside of it.
242+
// Blur the toggle by clicking outside of it
243243
const toggleBoundingBox = (await toggle.boundingBox())!;
244244
await page.mouse.click(0, toggleBoundingBox.height + 1);
245245

@@ -258,28 +258,28 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
258258

259259
const ionBlur = await page.spyOnEvent('ionBlur');
260260

261-
// Test blur with keyboard navigation.
262-
// Focus the toggle.
261+
// Test blur with keyboard navigation
262+
// Focus the toggle
263263
await pageUtils.pressKeys('Tab');
264-
// Blur the toggle.
264+
// Blur the toggle
265265
await pageUtils.pressKeys('Tab');
266266

267267
expect(ionBlur).toHaveReceivedEventTimes(1);
268268

269-
// Verify that the event target is the toggle and not the item.
269+
// Verify that the event target is the toggle and not the item
270270
const event = ionBlur.events[0];
271271
expect((event.target as HTMLElement).tagName.toLowerCase()).toBe('ion-toggle');
272272

273-
// Test blur with click.
273+
// Test blur with click
274274
const item = page.locator('ion-item');
275275
await item.click();
276-
// Blur the toggle by clicking outside of it.
276+
// Blur the toggle by clicking outside of it
277277
const itemBoundingBox = (await item.boundingBox())!;
278278
await page.mouse.click(0, itemBoundingBox.height + 1);
279279

280280
expect(ionBlur).toHaveReceivedEventTimes(2);
281281

282-
// Verify that the event target is the toggle and not the item.
282+
// Verify that the event target is the toggle and not the item
283283
const eventByClick = ionBlur.events[0];
284284
expect((eventByClick.target as HTMLElement).tagName.toLowerCase()).toBe('ion-toggle');
285285
});

0 commit comments

Comments
 (0)