Skip to content

Commit fbb34f7

Browse files
committed
test(): fix logs
1 parent 74bf7e0 commit fbb34f7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/components/button/test/form-reference/button.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, config }) =>
169169

170170
expect(logs.length).toBe(1);
171171
expect(logs[0]).toContain(
172-
'[Ionic Warning]: Form with selector: "#missingForm" could not be found. Verify that the id is correct and the form is rendered in the DOM.'
172+
'[Ionic Warning]: [ion-button] - Form with selector: "#missingForm" could not be found. Verify that the id is correct and the form is rendered in the DOM.'
173173
);
174174
});
175175

@@ -197,7 +197,7 @@ configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, config }) =>
197197

198198
expect(logs.length).toBe(1);
199199
expect(logs[0]).toContain(
200-
'[Ionic Warning]: The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.'
200+
'[Ionic Warning]: [ion-button] - The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.'
201201
);
202202
});
203203
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
687687

688688
expect(logs.length).toBe(1);
689689
expect(logs[0]).toContain(
690-
'[Ionic Warning]: Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".'
690+
'[Ionic Warning]: [ion-datetime] - "timeZone" and "timeZoneName" are not supported in "formatOptions".'
691691
);
692692
});
693693

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
145145
await modal.evaluate((el: HTMLIonModalElement) => el.setCurrentBreakpoint(0.5));
146146

147147
expect(warnings.length).toBe(1);
148-
expect(warnings[0]).toBe('[Ionic Warning]: setCurrentBreakpoint is only supported on sheet modals.');
148+
expect(warnings[0]).toBe('[Ionic Warning]: [ion-modal] - setCurrentBreakpoint is only supported on sheet modals.');
149149
});
150150

151151
test('it should return undefined when getting the breakpoint on a non-sheet modal', async ({ page }) => {

core/src/components/modal/test/sheet/modal.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
9696
test('it should warn when setting an invalid breakpoint', async () => {
9797
expect(warnings.length).toBe(1);
9898
expect(warnings[0]).toBe(
99-
'[Ionic Warning]: Attempted to set invalid breakpoint value 0.01. Please double check that the breakpoint value is part of your defined breakpoints.'
99+
'[Ionic Warning]: [ion-modal] - Attempted to set invalid breakpoint value 0.01. Please double check that the breakpoint value is part of your defined breakpoints.'
100100
);
101101
});
102102
});

0 commit comments

Comments
 (0)