Skip to content

Commit e281399

Browse files
committed
test(input): update e2e test naming
1 parent 9681311 commit e281399

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

core/src/components/input/test/bottom-content/input.e2e.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,14 @@ configs({ modes: ['ios', 'md'], directions: ['ltr'] }).forEach(({ title, screens
151151
*/
152152
configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
153153
test.describe(title('input: supporting text customization'), () => {
154-
test('should not have visual regressions when rendering helper text with a custom color via css', async ({
154+
test('should not have visual regressions when rendering helper text with custom css', async ({
155155
page,
156156
}) => {
157157
await page.setContent(
158158
`
159159
<style>
160160
ion-input.custom-input.md .input-bottom .helper-text {
161+
font-size: 20px;
161162
color: green;
162163
}
163164
</style>
@@ -167,15 +168,16 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
167168
);
168169

169170
const helperText = page.locator('ion-input');
170-
await expect(helperText).toHaveScreenshot(screenshot(`input-helper-text-custom-color`));
171+
await expect(helperText).toHaveScreenshot(screenshot(`input-helper-text-custom-css`));
171172
});
172-
test('should not have visual regressions when rendering error text with a custom color via css', async ({
173+
test('should not have visual regressions when rendering error text with custom css', async ({
173174
page,
174175
}) => {
175176
await page.setContent(
176177
`
177178
<style>
178179
ion-input.custom-input.md .input-bottom .error-text {
180+
font-size: 20px;
179181
color: purple;
180182
}
181183
</style>
@@ -185,9 +187,9 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
185187
);
186188

187189
const errorText = page.locator('ion-input');
188-
await expect(errorText).toHaveScreenshot(screenshot(`input-error-text-custom-color`));
190+
await expect(errorText).toHaveScreenshot(screenshot(`input-error-text-custom-css`));
189191
});
190-
test('should not have visual regressions when rendering error text with a custom color via css var', async ({
192+
test('should not have visual regressions when rendering error text with a custom css variable', async ({
191193
page,
192194
}) => {
193195
await page.setContent(
@@ -203,7 +205,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
203205
);
204206

205207
const errorText = page.locator('ion-input');
206-
await expect(errorText).toHaveScreenshot(screenshot(`input-error-text-custom-color-var`));
208+
await expect(errorText).toHaveScreenshot(screenshot(`input-error-text-custom-css-var`));
207209
});
208210
});
209211
});

0 commit comments

Comments
 (0)