Require double back to exit Android tab roots

This commit is contained in:
2026-10-24 02:23:15 +01:00
parent 54f74ade33
commit 4e6771aa24
6 changed files with 233 additions and 11 deletions
+5 -1
View File
@@ -213,7 +213,11 @@ void main() {
expect(provider.value.uri.path, '/runs');
expect(exits, isEmpty);
// From the list, Back is left to Android. No custom exit dialog.
// From the list, the first Back hints; the second is left to Android.
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(exits, isEmpty);
expect(find.text('Press back again to close'), findsOneWidget);
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(find.text('Close Pipelines?'), findsNothing);