diff --git a/packages/react/src/components/TextArea/TextArea-test.js b/packages/react/src/components/TextArea/TextArea-test.js index e1b44fc2e147..426035952724 100644 --- a/packages/react/src/components/TextArea/TextArea-test.js +++ b/packages/react/src/components/TextArea/TextArea-test.js @@ -373,6 +373,67 @@ describe('TextArea', () => { }); describe('behaves as expected - Component API', () => { + it.each([ + [false, 'character'], + [true, 'character'], + [false, 'word'], + [true, 'word'], + ])( + 'should process rapid controlled input with enableCounter=%s and counterMode=%s', + async (enableCounter, counterMode) => { + const onChange = jest.fn(); + const onError = jest.fn((event) => event.preventDefault()); + const previousActEnvironment = globalThis.IS_REACT_ACT_ENVIRONMENT; + function ControlledTextArea() { + const [value, setValue] = React.useState(''); + return ( +