Skip to content

Commit 44d6694

Browse files
committed
fix test
1 parent 47f43a4 commit 44d6694

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/go_router/example/lib/on_exit.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ final GoRouter _router = GoRouter(
2727
context: context,
2828
builder: (_) {
2929
return AlertDialog(
30-
title: const Text('Confirm'),
3130
content: const Text('Are you sure to leave this page?'),
3231
actions: <Widget>[
3332
TextButton(

packages/go_router/example/test/on_exit_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ void main() {
2424
await tester.tap(find.byType(BackButton));
2525
await tester.pumpAndSettle();
2626

27+
expect(find.text('Are you sure to leave this page?'), findsOneWidget);
2728
await tester.tap(find.text('Confirm'));
2829
await tester.pumpAndSettle();
2930
expect(find.byType(example.HomeScreen), findsOneWidget);

0 commit comments

Comments
 (0)