Skip to content

Commit

Permalink
fix: Use correct test case for fundraising amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Jun 3, 2024
1 parent 2cc80d2 commit c4a036d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/app/tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check failure on line 40 in src/app/tests.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

src/app/tests.tsx > Homepage

AssertionError: project fundraising amounts: expected '' to be truthy - Expected: "" + Received: false ❯ src/app/tests.tsx:40:5

Check failure on line 40 in src/app/tests.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

src/app/tests.tsx > Homepage

AssertionError: project fundraising amounts: expected '' to be truthy - Expected: "" + Received: false ❯ src/app/tests.tsx:40:5
});

0 comments on commit c4a036d

Please sign in to comment.