diff --git a/src/__tests__/type.js b/src/__tests__/type.js index 8735dfee..8b57efe5 100644 --- a/src/__tests__/type.js +++ b/src/__tests__/type.js @@ -521,3 +521,53 @@ test('ignored {backspace} in controlled input', async () => { keyup: 4 (52) `) }) + +// https://github.com/testing-library/user-event/issues/321 +test('typing in a textarea with existing text', async () => { + const {element, getEventCalls} = setup(