mirror of
https://github.com/foss42/apidash.git
synced 2025-06-04 09:16:02 +08:00
Replace tester.pumpAndSettle();
with tester.pump();
Replacing `tester.pumpAndSettle();` with `tester.pump();` resolves an issue where `pumpAndSettle()` waits for all animations to complete, causing an infinite loop with `CircularProgressIndicator`. Using `pump()` ensures efficient frame building without unnecessary animation waiting.
This commit is contained in:
@ -13,7 +13,7 @@ void main() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
await tester.pumpAndSettle();
|
await tester.pump();
|
||||||
expect(find.text('Welcome to API Dash ⚡️'), findsOneWidget);
|
expect(find.text('Welcome to API Dash ⚡️'), findsOneWidget);
|
||||||
|
|
||||||
expect(find.byType(RichText), findsAtLeastNWidgets(1));
|
expect(find.byType(RichText), findsAtLeastNWidgets(1));
|
||||||
|
Reference in New Issue
Block a user