30997a2d7e
Signed-off-by: dab246 <tdvu@linagora.com> Signed-off-by: dab246 <tdvu@linagora.com>
19 lines
483 B
Dart
19 lines
483 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:patrol/patrol.dart';
|
|
|
|
abstract class BaseScenario {
|
|
final PatrolIntegrationTester $;
|
|
|
|
const BaseScenario(this.$);
|
|
|
|
Future<void> execute();
|
|
|
|
Future<void> expectViewVisible(PatrolFinder patrolFinder) async {
|
|
await $.waitUntilVisible(patrolFinder);
|
|
expect(patrolFinder, findsWidgets);
|
|
}
|
|
|
|
Future<void> expectViewInvisible(PatrolFinder patrolFinder) async {
|
|
expect(patrolFinder, findsNothing);
|
|
}
|
|
} |