mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #9829 from overleaf/ds-chat-placeholder-change
Chat Pane-Change Placeholder for message input box GitOrigin-RevId: 254efa89b883734ad3b7bfeefe625db84d93d579
This commit is contained in:
parent
ad147e250d
commit
e87e164a84
4 changed files with 8 additions and 5 deletions
|
@ -697,7 +697,7 @@
|
|||
"you_dont_have_any_repositories": "",
|
||||
"your_affiliation_is_confirmed": "",
|
||||
"your_browser_does_not_support_this_feature": "",
|
||||
"your_message": "",
|
||||
"your_message_to_collaborators": "",
|
||||
"your_projects": "",
|
||||
"zotero_groups_loading_error": "",
|
||||
"zotero_groups_relink": "",
|
||||
|
|
|
@ -21,11 +21,11 @@ function MessageInput({ resetUnreadMessages, sendMessage }) {
|
|||
return (
|
||||
<form className="new-message">
|
||||
<label htmlFor="chat-input" className="sr-only">
|
||||
{t('your_message')}
|
||||
{t('your_message_to_collaborators')}
|
||||
</label>
|
||||
<textarea
|
||||
id="chat-input"
|
||||
placeholder={`${t('your_message')}…`}
|
||||
placeholder={`${t('your_message_to_collaborators')}…`}
|
||||
onKeyDown={handleKeyDown}
|
||||
onClick={resetUnreadMessages}
|
||||
/>
|
||||
|
|
|
@ -1487,6 +1487,7 @@
|
|||
"get_free_stuff": "Get free stuff",
|
||||
"chat": "Chat",
|
||||
"your_message": "Your Message",
|
||||
"your_message_to_collaborators": "Send a message to your collaborators",
|
||||
"loading": "Loading",
|
||||
"connecting": "Connecting",
|
||||
"recompile": "Recompile",
|
||||
|
|
|
@ -20,7 +20,7 @@ describe('<MessageInput />', function () {
|
|||
/>
|
||||
)
|
||||
|
||||
screen.getByLabelText('Your Message')
|
||||
screen.getByLabelText('Send a message to your collaborators')
|
||||
})
|
||||
|
||||
it('sends a message after typing and hitting enter', function () {
|
||||
|
@ -47,7 +47,9 @@ describe('<MessageInput />', function () {
|
|||
/>
|
||||
)
|
||||
|
||||
const input = screen.getByPlaceholderText('Your Message…')
|
||||
const input = screen.getByPlaceholderText(
|
||||
'Send a message to your collaborators…'
|
||||
)
|
||||
|
||||
fireEvent.click(input)
|
||||
expect(resetUnreadMessages).to.be.calledOnce
|
||||
|
|
Loading…
Reference in a new issue