Add chat embed automated browser tests. Closes #2743

This commit is contained in:
Gabe Kangas
2023-02-26 19:06:22 -08:00
parent 1f99b0bf22
commit 5b8bacb83f
5 changed files with 44 additions and 34 deletions

View File

@@ -33,14 +33,16 @@ export default function ReadWriteChatEmbed() {
<ClientConfigStore />
<Header name={headerText} chatAvailable chatDisabled={chatDisabled} online={videoAvailable} />
{currentUser && (
<ChatContainer
messages={messages}
usernameToHighlight={currentUser.displayName}
chatUserId={currentUser.id}
isModerator={currentUser.isModerator}
showInput
height="80vh"
/>
<div id="chat-container">
<ChatContainer
messages={messages}
usernameToHighlight={currentUser.displayName}
chatUserId={currentUser.id}
isModerator={currentUser.isModerator}
showInput
height="80vh"
/>
</div>
)}
</div>
);