diff --git a/packages/ui/components/input-file/test/lion-input-file.test.js b/packages/ui/components/input-file/test/lion-input-file.test.js index df576e633..0efd76860 100644 --- a/packages/ui/components/input-file/test/lion-input-file.test.js +++ b/packages/ui/components/input-file/test/lion-input-file.test.js @@ -158,6 +158,17 @@ describe('lion-input-file', () => { }) ); + it('error should not be there when the file extensions are accepted', async () => { + const el = await fixture(html` + + `); + + mimicSelectFile(el, [fileWrongType]); + await el.updateComplete; + + expect(el.hasFeedbackFor.length).to.equal(0); + }); + it('should not be added to the selected list', async () => { const el = await fixture(html`