mirror of
https://github.com/foss42/apidash.git
synced 2025-06-04 01:13:30 +08:00
update timer testing function
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user