Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Jan 18, 2025
1 parent a22d065 commit 0d394b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:network_tools_flutter/network_tools_flutter.dart';
import 'package:vernet/helper/app_settings.dart';
import 'package:vernet/main.dart';
import 'package:vernet/ui/adaptive/adaptive_list.dart';
import 'package:vernet/values/keys.dart';

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
final appSettings = AppSettings.instance;
group('Ping integration test', () {
testWidgets('tap on the ping button, verify ping ended', (tester) async {
Expand Down Expand Up @@ -35,7 +37,7 @@ void main() {
final submitButton = find.byKey(WidgetKey.basePageSubmitButton.key);
await tester.tap(submitButton);

await tester.pumpAndSettle(const Duration(seconds: 5));
await tester.pumpAndSettle(const Duration(seconds: 6));

expect(find.byKey(WidgetKey.pingSummarySent.key), findsOneWidget);
expect(find.byKey(WidgetKey.pingSummaryReceived.key), findsOneWidget);
Expand Down

0 comments on commit 0d394b3

Please sign in to comment.