From 894664838bd93521d7546fc324628bc38e939b2c Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Wed, 15 May 2024 17:48:04 +0500 Subject: [PATCH] refactor: resolved waitFor timeout issue --- src/widgets/Xpert.test.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/Xpert.test.jsx b/src/widgets/Xpert.test.jsx index 2b8062a..20ccc25 100644 --- a/src/widgets/Xpert.test.jsx +++ b/src/widgets/Xpert.test.jsx @@ -181,7 +181,7 @@ test('loading message appears in the sidebar while the response loads', async () waitFor(async () => { await screen.findByText('Xpert is thinking'); await screen.findByText(responseMessage.content); - }, { timeout: 3000 }); + }, { timeout: 2000 }); }); test('response text appears as message in the sidebar', async () => { const user = userEvent.setup();