diff --git a/packages/core/src/components/field-wrapper/field-wrapper.tsx b/packages/core/src/components/field-wrapper/field-wrapper.tsx index 09b2a1e716..0470105340 100644 --- a/packages/core/src/components/field-wrapper/field-wrapper.tsx +++ b/packages/core/src/components/field-wrapper/field-wrapper.tsx @@ -126,7 +126,11 @@ export class FieldWrapper implements FieldWrapperInterface { {this.showTextAsTooltip === true && ( - + {renderHelperText(textOptions)} )} diff --git a/packages/core/src/tests/input/input.e2e.ts b/packages/core/src/tests/input/input.e2e.ts index b31c11875c..2c6b04151e 100644 --- a/packages/core/src/tests/input/input.e2e.ts +++ b/packages/core/src/tests/input/input.e2e.ts @@ -71,4 +71,13 @@ regressionTest.describe('input', () => { await page.goto('input/with-slots'); await expect(page).toHaveScreenshot(); }); + + regressionTest('tooltip below input', async ({ page }) => { + await page.goto('input/tooltip'); + + await page.locator('ix-input').hover(); + + await expect(page.locator('ix-tooltip')).toBeVisible(); + await expect(page).toHaveScreenshot(); + }); }); diff --git a/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-dark-linux.png b/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-dark-linux.png new file mode 100644 index 0000000000..19ebd66f48 Binary files /dev/null and b/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-dark-linux.png differ diff --git a/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-light-linux.png b/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-light-linux.png new file mode 100644 index 0000000000..5076b004df Binary files /dev/null and b/packages/core/src/tests/input/input.e2e.ts-snapshots/input-tooltip-below-input-1-chromium---theme-classic-light-linux.png differ diff --git a/packages/core/src/tests/input/tooltip/index.html b/packages/core/src/tests/input/tooltip/index.html new file mode 100644 index 0000000000..6b6bb29b36 --- /dev/null +++ b/packages/core/src/tests/input/tooltip/index.html @@ -0,0 +1,32 @@ + + + + + + + + Stencil Component Starter + + + +
+ +
+ + +