@@ -28,7 +28,15 @@ import 'package:flutter/material.dart';
2828import 'shared.dart' ;
2929
3030void main () {
31- patrol ('C01 - Test session initialization errors' ,
31+ // Patrol runs the tests in alphabetical order, add a prefix to the test
32+ // name to control the order with script:
33+ int testCounter = 0 ;
34+ String prefix (String name) {
35+ testCounter++ ;
36+ return 'IT${testCounter .toString ().padLeft (2 , '0' )} $name ' ;
37+ }
38+
39+ patrol (prefix ('Test session initialization errors' ),
3240 (PatrolIntegrationTester $) async {
3341 await GoogleMapsNavigator .resetTermsAccepted ();
3442 expect (await GoogleMapsNavigator .areTermsAccepted (), false );
@@ -174,7 +182,7 @@ void main() {
174182 }
175183 });
176184
177- patrol ('C02 - Test Maps initialization' , (PatrolIntegrationTester $) async {
185+ patrol (prefix ( ' Test Maps initialization') , (PatrolIntegrationTester $) async {
178186 final Completer <GoogleNavigationViewController > viewControllerCompleter =
179187 Completer <GoogleNavigationViewController >();
180188
@@ -266,7 +274,7 @@ void main() {
266274 expect (await controller.isNavigationUIEnabled (), true );
267275 });
268276
269- patrol ('C03 - Test Maps initialization without navigation' ,
277+ patrol (prefix ( ' Test Maps initialization without navigation') ,
270278 (PatrolIntegrationTester $) async {
271279 final Completer <GoogleMapViewController > viewControllerCompleter =
272280 Completer <GoogleMapViewController >();
0 commit comments