Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhtai committed Sep 18, 2023
1 parent 47f43a4 commit 44d6694
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/go_router/example/lib/on_exit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ final GoRouter _router = GoRouter(
context: context,
builder: (_) {
return AlertDialog(
title: const Text('Confirm'),
content: const Text('Are you sure to leave this page?'),
actions: <Widget>[
TextButton(
Expand Down
1 change: 1 addition & 0 deletions packages/go_router/example/test/on_exit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ void main() {
await tester.tap(find.byType(BackButton));
await tester.pumpAndSettle();

expect(find.text('Are you sure to leave this page?'), findsOneWidget);
await tester.tap(find.text('Confirm'));
await tester.pumpAndSettle();
expect(find.byType(example.HomeScreen), findsOneWidget);
Expand Down

0 comments on commit 44d6694

Please sign in to comment.