update timer testing function

This commit is contained in:
Yousef Rabia
2024-03-21 00:32:20 +02:00
parent fec18be44b
commit f26ba583cc
2 changed files with 12 additions and 7 deletions

View File

@ -34,12 +34,17 @@ void main() {
home: Scaffold(
body: SendingWidget(
startSendingTime: DateTime.now(),
isTest: true,
),
),
),
);
expect(find.text('Time elapsed: 0 ms'), findsOneWidget);
expect(find.byType(Lottie), findsOneWidget);
await tester.pump(const Duration(seconds: 1));
expect(find.text('Time elapsed: 1.00 s'), findsOneWidget);
});
testWidgets('Testing Not Sent Widget', (tester) async {