Skip to content

Commit d2e8e34

Browse files
committed
Fix widget test by waiting for splash screen animations to complete
- Add pumpAndSettle() to wait for typewriter animation to finish - The splash screen uses AnimatedTextKit with 100ms character speed - Test was failing because it checked for text before animation completed This should make the widget test pass by ensuring the animated text is fully displayed.
1 parent 0ed0074 commit d2e8e34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/widget_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ 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();
15+
1316
// Verify that our app starts with the splash screen
1417
expect(find.text('Fyrefly XF₲_wallet'), findsOneWidget);
1518
expect(find.text('Privacy Blockchain Banking'), findsOneWidget);

0 commit comments

Comments
 (0)