Require double back to exit Android tab roots
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user