From 55be77bf387c064d15e702f7460cc8a49e2aa636 Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Thu, 2 Nov 2023 10:24:36 -0400 Subject: [PATCH] Fix test --- .../input/test/label-placement/input.e2e.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/core/src/components/input/test/label-placement/input.e2e.ts b/core/src/components/input/test/label-placement/input.e2e.ts index bee89dce4a..1baec035c0 100644 --- a/core/src/components/input/test/label-placement/input.e2e.ts +++ b/core/src/components/input/test/label-placement/input.e2e.ts @@ -231,8 +231,8 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co await expect(input).toHaveScreenshot(screenshot(`input-label-layering`)); }); }); - test.describe(title('input: floating/stacked label custom font size'), () => { - test('label should not centered when field is not focused', async ({ page }, testInfo) => { + test.describe(title('input: floating label custom font size'), () => { + test('large label should be centered when field is not focused', async ({ page }, testInfo) => { testInfo.annotations.push({ type: 'issue', description: 'https://github.com/ionic-team/ionic-framework/issues/27194', @@ -245,20 +245,13 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co label="Large floating label" label-placement="floating" > -
- `, config ); const input = page.locator('ion-input'); - await expect(input).toHaveScreenshot(screenshot(`input-label-custom-size`)); + await expect(input).toHaveScreenshot(screenshot('input-large-floating-label')); }); }); });