From 75cc691497984fdfaff9bc7a80843f6477409a55 Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Thu, 2 Nov 2023 09:51:28 -0400 Subject: [PATCH] Add a test --- .../input/test/label-placement/input.e2e.ts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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 0e036e1136..bee89dce4a 100644 --- a/core/src/components/input/test/label-placement/input.e2e.ts +++ b/core/src/components/input/test/label-placement/input.e2e.ts @@ -231,4 +231,34 @@ 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) => { + testInfo.annotations.push({ + type: 'issue', + description: 'https://github.com/ionic-team/ionic-framework/issues/27194', + }); + await page.setContent( + ` + +
+ + `, + config + ); + + const input = page.locator('ion-input'); + + await expect(input).toHaveScreenshot(screenshot(`input-label-custom-size`)); + }); + }); });