diff --git a/src/web/components/form/__tests__/select.jsx b/src/web/components/form/__tests__/select.jsx index 488a2d22c6..1a5745a6a5 100644 --- a/src/web/components/form/__tests__/select.jsx +++ b/src/web/components/form/__tests__/select.jsx @@ -210,6 +210,38 @@ describe('Select component tests', () => { expect(getSelectItemElements().length).toEqual(1); }); + + test('should not call onChange handler when newValue is null or undefined', async () => { + const items = [ + { + value: 'bar', + label: 'Bar', + }, + { + value: 'foo', + label: 'Foo', + }, + ]; + + const onChange = testing.fn(); + + render(