Skip to content

Commit

Permalink
Fix back button test
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed Oct 27, 2024
1 parent 7c78ec1 commit e2ebcfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/routes/home_route_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ void main() {
});

testWidgets('app shows exit confirmation toast if enabled in the preferences', (WidgetTester tester) async {
await Settings.confirmExitingWithBackButton.set(true);
await tester.runAppTest(() async {
await Settings.confirmExitingWithBackButton.set(true);
final SystemChannelObserver systemObserver = SystemChannelObserver(tester);
final ToastChannelObserver toastObserver = ToastChannelObserver(tester);
await BackButtonInterceptor.popRoute();
Expand Down

0 comments on commit e2ebcfa

Please sign in to comment.