Skip to content

Commit 7d6c32f

Browse files
committed
refactor(datetime-button.e2e): use testInfo argument to match style of other tests
1 parent 05d81cb commit 7d6c32f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

core/src/components/datetime-button/test/basic/datetime-button.e2e.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
362362
await page.clock.setFixedTime(fixedTime);
363363
});
364364

365-
test('should default to exact current time with no constraints', async ({ page }) => {
366-
test.info().annotations.push({
365+
test('should default to exact current time with no constraints', async ({ page }, testInfo) => {
366+
testInfo.annotations.push({
367367
type: 'issue',
368368
description: 'https://github.com/ionic-team/ionic-framework/issues/30183',
369369
});
@@ -395,8 +395,8 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
395395
await expect(page.locator('#time-button')).toContainText(timeFormat.format(fixedTime));
396396
});
397397

398-
test('should obey minuteValues constraint', async ({ page }) => {
399-
test.info().annotations.push({
398+
test('should obey minuteValues constraint', async ({ page }, testInfo) => {
399+
testInfo.annotations.push({
400400
type: 'issue',
401401
description: 'https://github.com/ionic-team/ionic-framework/issues/30183',
402402
});
@@ -425,8 +425,8 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
425425
await expect(page.locator('#time-button')).toContainText(timeFormat.format(expectedTime));
426426
});
427427

428-
test('should obey hourValues constraint', async ({ page }) => {
429-
test.info().annotations.push({
428+
test('should obey hourValues constraint', async ({ page }, testInfo) => {
429+
testInfo.annotations.push({
430430
type: 'issue',
431431
description: 'https://github.com/ionic-team/ionic-framework/issues/30183',
432432
});
@@ -455,8 +455,8 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
455455
await expect(page.locator('#time-button')).toContainText(timeFormat.format(expectedTime));
456456
});
457457

458-
test('should obey monthValues constraint', async ({ page }) => {
459-
test.info().annotations.push({
458+
test('should obey monthValues constraint', async ({ page }, testInfo) => {
459+
testInfo.annotations.push({
460460
type: 'issue',
461461
description: 'https://github.com/ionic-team/ionic-framework/issues/30183',
462462
});

0 commit comments

Comments
 (0)