Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
chunhtai committed Sep 18, 2023
commit 44d6694475963dbfcbceaa5f35e394bfda39bdff
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