diff options
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/src/ui/__tests__/MessageInput.test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/__tests__/MessageInput.test.js b/vnext/src/ui/__tests__/MessageInput.test.js index 1b5b0442..0bfe2569 100644 --- a/vnext/src/ui/__tests__/MessageInput.test.js +++ b/vnext/src/ui/__tests__/MessageInput.test.js @@ -40,7 +40,7 @@ test('Submits on ctrl-enter and pass validation', async () => { }); expect(onSend).toHaveBeenCalledTimes(2); expect(result).toBe(true); - await waitFor(() => expect(textarea.textContent).toEqual('')); + await waitFor(() => expect(textarea).toHaveTextContent('')); textarea.focus(); expect(textarea).toHaveFocus(); }); |