From b102121ee1de420cff75a4b5c30ebdcac7a326a0 Mon Sep 17 00:00:00 2001 From: Ethan McElroy Date: Wed, 4 Dec 2024 17:04:46 -0500 Subject: [PATCH] chore: remove unnecessary aria labels --- src/components/chat-transcript.test.tsx | 2 -- src/components/chat-transcript.tsx | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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.speaker}

-

+

{message.content}