15 lines
387 B
Dart
15 lines
387 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:patrol/patrol.dart';
|
|
|
|
abstract class CoreRobot {
|
|
final PatrolIntegrationTester $;
|
|
|
|
CoreRobot(this.$);
|
|
|
|
Future<void> ensureViewVisible(PatrolFinder patrolFinder) async {
|
|
await $.waitUntilVisible(patrolFinder);
|
|
expect(patrolFinder, findsWidgets);
|
|
}
|
|
|
|
dynamic ignoreException() => $.tester.takeException();
|
|
} |