From 1a4f49719d64e1bd2f1ac45be644d72ee29cdad7 Mon Sep 17 00:00:00 2001 From: ByoungYong Kim Date: Tue, 3 Sep 2024 13:19:58 +0200 Subject: [PATCH] Add test --- .../input-file/test/lion-input-file.test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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`