Merge pull request #3367 from overleaf/ho-ms-jel-chat-a11y

Improve chat accessibility

GitOrigin-RevId: 853da57460c7e3a18abbe1130553e34bd661b6b3
This commit is contained in:
Jessica Lawshe
2020-11-10 03:04:40 +00:00
committed by Copybot
parent 21ffe27bdd
commit d138837049
3 changed files with 8 additions and 2 deletions
@@ -21,7 +21,7 @@ describe('<MessageInput />', function() {
/>
)
screen.getByPlaceholderText('Your Message')
screen.getByLabelText('Your Message')
})
it('sends a message after typing and hitting enter', function() {
@@ -32,7 +32,7 @@ describe('<MessageInput />', function() {
/>
)
const input = screen.getByPlaceholderText('Your Message…')
const input = screen.getByRole('textbox')
fireEvent.change(input, { target: { value: 'hello world' } })
fireEvent.keyDown(input, { key: 'Enter' })