diff --git a/src/liquid/components/ld-input/ld-input.tsx b/src/liquid/components/ld-input/ld-input.tsx index e21d92fa0b..042977e5af 100644 --- a/src/liquid/components/ld-input/ld-input.tsx +++ b/src/liquid/components/ld-input/ld-input.tsx @@ -134,16 +134,17 @@ export class LdInput implements InnerFocusable { return ( + + + +`; + +exports[`ld-input renders type file 1`] = ` + + + + + @@ -24,7 +43,7 @@ exports[`ld-input renders with both slots 1`] = ` - + @@ -40,7 +59,7 @@ exports[`ld-input renders with slot end 1`] = ` - + @@ -53,7 +72,7 @@ exports[`ld-input renders with slot start 1`] = ` - + @@ -66,7 +85,7 @@ exports[`ld-input renders with value 1`] = ` - + @@ -76,7 +95,7 @@ exports[`ld-input updates value prop on value change 1`] = ` - + diff --git a/src/liquid/components/ld-input/test/ld-input.spec.ts b/src/liquid/components/ld-input/test/ld-input.spec.ts index 5b28063db4..f72cfd4792 100644 --- a/src/liquid/components/ld-input/test/ld-input.spec.ts +++ b/src/liquid/components/ld-input/test/ld-input.spec.ts @@ -5,7 +5,7 @@ describe('ld-input', () => { it('renders', async () => { const page = await newSpecPage({ components: [LdInput], - html: ``, + html: ``, }) expect(page.root).toMatchSnapshot() }) @@ -13,7 +13,7 @@ describe('ld-input', () => { it('renders as dark input with prop tone set to "dark"', async () => { const page = await newSpecPage({ components: [LdInput], - html: ``, + html: ``, }) expect(page.root).toMatchSnapshot() }) @@ -21,7 +21,23 @@ describe('ld-input', () => { it('renders with value', async () => { const page = await newSpecPage({ components: [LdInput], - html: ``, + html: ``, + }) + expect(page.root).toMatchSnapshot() + }) + + it('renders type file', async () => { + const page = await newSpecPage({ + components: [LdInput], + html: ``, + }) + expect(page.root).toMatchSnapshot() + }) + + it('renders type file (multiline)', async () => { + const page = await newSpecPage({ + components: [LdInput], + html: ``, }) expect(page.root).toMatchSnapshot() }) @@ -29,7 +45,7 @@ describe('ld-input', () => { it('updates value prop on value change', async () => { const page = await newSpecPage({ components: [LdInput], - html: ``, + html: ``, }) const ldInput = page.root expect(ldInput.value).toBe('yada-yada') @@ -47,7 +63,7 @@ describe('ld-input', () => { it('emits focus and blur event', async () => { const page = await newSpecPage({ components: [LdInput], - html: ``, + html: ``, }) const ldInput = page.root const input = page.root.shadowRoot.querySelector('input')