feat : Ajout du composant email

This commit is contained in:
2026-05-11 10:53:27 +02:00
parent eb21827686
commit 085c70d320
19 changed files with 1000 additions and 31 deletions

View File

@@ -160,4 +160,18 @@ describe('MalioInputAmount', () => {
expect(wrapper.get('input').classes()).toContain('!pl-11')
expect(wrapper.get('label').classes()).toContain('left-8')
})
it('shows primary icon color on focus', async () => {
const wrapper = mountInputAmount()
await wrapper.get('input').trigger('focus')
expect(wrapper.get('[data-test="icon"]').classes()).toContain('text-m-primary')
})
it('shows black icon color when filled and unfocused', () => {
const wrapper = mountInputAmount({modelValue: '12,50'})
expect(wrapper.get('[data-test="icon"]').classes()).toContain('text-black')
})
})