From 963586aab5c275db53941facc3686d7bd4498c7b Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Wed, 4 Dec 2024 12:07:10 +0100 Subject: [PATCH] fix: allow 0 as a value for input field --- .../input/src/input-field/__tests__/input-field.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/input/src/input-field/__tests__/input-field.test.js b/components/input/src/input-field/__tests__/input-field.test.js index 17f7d383e6..51d7179585 100644 --- a/components/input/src/input-field/__tests__/input-field.test.js +++ b/components/input/src/input-field/__tests__/input-field.test.js @@ -24,4 +24,12 @@ describe('', () => { expect(onKeyDown).toHaveBeenCalledTimes(1) }) + + it('should render a field with value zero', () => { + const screen = render( + + ) + + expect(screen.getByLabelText('label')).toHaveValue(0) + }) })