Commit 2cc80d2 1 parent 47f5157 commit 2cc80d2 Copy full SHA for 2cc80d2
File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,14 @@ test("Homepage", async () => {
16
16
"random donation button" ,
17
17
) . toBeDefined ( ) ;
18
18
19
- await waitFor ( ( ) =>
20
- expect (
21
- screen . getAllByTestId ( "project-card" ) . at ( 0 ) ,
22
- "project cards loaded" ,
23
- ) . toBeDefined ( ) ,
19
+ await waitFor (
20
+ ( ) =>
21
+ expect (
22
+ screen . getAllByTestId ( "project-card" ) . at ( 0 ) ,
23
+ "project cards loaded" ,
24
+ ) . toBeDefined ( ) ,
25
+
26
+ { timeout : 2000 } ,
24
27
) ;
25
28
26
29
const projectTitles = screen . getAllByTestId ( "project-card-title" ) ;
@@ -31,10 +34,13 @@ test("Homepage", async () => {
31
34
"project-card-fundraising-amount" ,
32
35
) ;
33
36
34
- await waitFor ( ( ) =>
35
- expect (
36
- projectFundraisingAmounts . at ( 0 ) ?. textContent ,
37
- "project fundraising amounts" ,
38
- ) . toBeDefined ( ) ,
37
+ await waitFor (
38
+ ( ) =>
39
+ expect (
40
+ projectFundraisingAmounts . at ( 0 ) ?. textContent ,
41
+ "project fundraising amounts" ,
42
+ ) . toBeDefined ( ) ,
43
+
44
+ { timeout : 2000 } ,
39
45
) ;
40
46
} ) ;
You can’t perform that action at this time.
0 commit comments