Skip to content

Commit

Permalink
Uncomment tets.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbhernan authored Oct 2, 2024
1 parent 6b905c5 commit 06366bb
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/advanced_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -290,23 +290,23 @@ void main() {
expect(find.byKey(const Key('enableSMS')), findsOneWidget);
expect(find.byKey(const Key('disableVoice')), findsOneWidget);

// await tester.tap(find.byKey(const Key('disconnect_123')));
// await tester.pumpAndSettle();
//
// expect(find.byType(AlertDialog), findsOneWidget);
//
// await tester.tap(find.text('Cancel'));
// await tester.pumpAndSettle();
//
// expect(find.byType(AlertDialog), findsNothing);
//
// await tester.tap(find.byKey(const Key('disconnect_123')));
// await tester.pumpAndSettle();
//
// await tester.tap(find.text('Ok'));
// await tester.pumpAndSettle();
//
// expect(find.byType(SnackBar), findsOneWidget);
// expect(find.byKey(const Key('disconnect_123')), findsNothing);
await tester.tap(find.byKey(const Key('disconnect_123')));
await tester.pumpAndSettle();

expect(find.byType(AlertDialog), findsOneWidget);

await tester.tap(find.text('Cancel'));
await tester.pumpAndSettle();

expect(find.byType(AlertDialog), findsNothing);

await tester.tap(find.byKey(const Key('disconnect_123')));
await tester.pumpAndSettle();

await tester.tap(find.text('Ok'));
await tester.pumpAndSettle();

expect(find.byType(SnackBar), findsOneWidget);
expect(find.byKey(const Key('disconnect_123')), findsNothing);
});
}

0 comments on commit 06366bb

Please sign in to comment.