diff --git a/src/components/chat-transcript.test.tsx b/src/components/chat-transcript.test.tsx index a3ee6a3..23dce7e 100644 --- a/src/components/chat-transcript.test.tsx +++ b/src/components/chat-transcript.test.tsx @@ -33,11 +33,9 @@ describe("test chat transcript component", () => { expect(message).toHaveAttribute("aria-label", labelContent); const speaker = within(message).getByTestId("chat-message-speaker"); - expect(speaker).toHaveAttribute("aria-label", "speaker"); expect(speaker).toHaveTextContent(chatTranscript.messages[index].speaker); const content = within(message).getByTestId("chat-message-content"); - expect(content).toHaveAttribute("aria-label", "message"); expect(content).toHaveTextContent(chatTranscript.messages[index].content); }); }); diff --git a/src/components/chat-transcript.tsx b/src/components/chat-transcript.tsx index bccd300..1b1d919 100644 --- a/src/components/chat-transcript.tsx +++ b/src/components/chat-transcript.tsx @@ -37,10 +37,10 @@ export const ChatTranscriptComponent = ({chatTranscript}: IProps) => { key={message.timestamp} role="listitem" > -
+
{message.content}