mirror of
https://github.com/foss42/apidash.git
synced 2025-06-01 06:42:07 +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.byType(RichText), findsAtLeastNWidgets(1));
|
||||
|
Reference in New Issue
Block a user