From 8e1a4764d8269ac0ffc190ec7229fc041581a5b8 Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Wed, 15 May 2024 17:52:09 +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 99bfb10..437c6a4 100644 --- a/src/widgets/Xpert.test.jsx +++ b/src/widgets/Xpert.test.jsx @@ -177,7 +177,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: 2000 }); }); test('response text appears as message in the sidebar', async () => { const user = userEvent.setup();