32 lines
888 B
Dart
32 lines
888 B
Dart
part of 'app_test.dart';
|
|
|
|
final _patrolTesterConfig = PatrolTesterConfig(printLogs: true);
|
|
final _nativeAutomatorConfig = NativeAutomatorConfig(
|
|
findTimeout: Duration(seconds: 20), // 10 seconds is too short for some CIs
|
|
);
|
|
|
|
// Future<void> createApp(PatrolIntegrationTester $) async {
|
|
// await app_main.main();
|
|
// await $.pumpAndSettle();
|
|
// }
|
|
|
|
void patrol(
|
|
String description,
|
|
Future<void> Function(PatrolIntegrationTester) callback, {
|
|
bool? skip,
|
|
List<String> tags = const [],
|
|
NativeAutomatorConfig? nativeAutomatorConfig,
|
|
LiveTestWidgetsFlutterBindingFramePolicy framePolicy =
|
|
LiveTestWidgetsFlutterBindingFramePolicy.fadePointers,
|
|
}) {
|
|
patrolTest(
|
|
description,
|
|
config: _patrolTesterConfig,
|
|
nativeAutomatorConfig: nativeAutomatorConfig ?? _nativeAutomatorConfig,
|
|
framePolicy: framePolicy,
|
|
skip: skip,
|
|
callback,
|
|
tags: tags,
|
|
);
|
|
}
|