From 0fac6e8f52c8bf4373478cfb0b7018fb3616f08a Mon Sep 17 00:00:00 2001 From: Varsha Menon Date: Wed, 20 Nov 2024 15:23:43 -0500 Subject: [PATCH] test: remove test id --- src/components/ChatBox/index.jsx | 2 +- src/widgets/Xpert.test.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ChatBox/index.jsx b/src/components/ChatBox/index.jsx index 6d5adc16..1e20512b 100644 --- a/src/components/ChatBox/index.jsx +++ b/src/components/ChatBox/index.jsx @@ -15,7 +15,7 @@ const ChatBox = ({ chatboxContainerRef }) => { {messageList.filter((m) => (m.timestamp.date < today.date)).map(({ role, content, timestamp }) => ( ))} - + {messageList.filter((m) => (m.timestamp.date === today.date)).map(({ role, content, timestamp }) => ( ))} diff --git a/src/widgets/Xpert.test.jsx b/src/widgets/Xpert.test.jsx index efd62b23..e4d9217a 100644 --- a/src/widgets/Xpert.test.jsx +++ b/src/widgets/Xpert.test.jsx @@ -365,7 +365,7 @@ test('message divider does not appear when no messages', async () => { expect(screen.getByRole('button', { name: 'submit' })).toBeVisible(); expect(screen.getByTestId('close-button')).toBeVisible(); - expect(screen.getByTestId('today-divider')).toBeVisible(); + expect(screen.getByText('Today')).toBeVisible(); }); // todo: test that today divider doesn't appear when messages all from today // todo: test that today divider appears when message from before today