Skip to content

Commit 30dbac8

Browse files
committed
Fix widget test timeout by using specific duration instead of pumpAndSettle
- Replace pumpAndSettle() with pump(Duration(seconds: 3)) to avoid timeout - pumpAndSettle() was timing out due to continuous animations in splash screen - Use fixed 3-second wait to allow typewriter animation to complete - This should resolve the test timeout while still waiting for animations The test should now pass without timing out.
1 parent d2e8e34 commit 30dbac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/widget_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ void main() {
1010
// Build our app and trigger a frame.
1111
await tester.pumpWidget(const XFGWalletApp());
1212

13-
// Wait for animations to complete (splash screen has typewriter animation)
14-
await tester.pumpAndSettle();
13+
// Wait for the typewriter animation to complete (approximately 2 seconds for the text)
14+
await tester.pump(const Duration(seconds: 3));
1515

1616
// Verify that our app starts with the splash screen
1717
expect(find.text('Fyrefly XF₲_wallet'), findsOneWidget);

0 commit comments

Comments
 (0)