From c4a036d831f9e48f2079b62e319eb342379ea936 Mon Sep 17 00:00:00 2001 From: "Carina.Akaia.io" Date: Mon, 3 Jun 2024 20:27:11 +0400 Subject: [PATCH] fix: Use correct test case for fundraising amounts --- src/app/tests.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/app/tests.tsx b/src/app/tests.tsx index 9df05ef1..c8350c8b 100644 --- a/src/app/tests.tsx +++ b/src/app/tests.tsx @@ -34,13 +34,8 @@ test("Homepage", async () => { "project-card-fundraising-amount", ); - await waitFor( - () => - expect( - projectFundraisingAmounts.at(0)?.textContent, - "project fundraising amounts", - ).toBeDefined(), - - { timeout: 2000 }, - ); + expect( + projectFundraisingAmounts.at(0)?.textContent, + "project fundraising amounts", + ).toBeTruthy(); });