TF-2528 Add integration test for search email with sort by sender nam…e ascending
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:patrol/patrol.dart';
|
||||
|
||||
abstract class BaseScenario {
|
||||
@@ -6,4 +7,9 @@ abstract class BaseScenario {
|
||||
const BaseScenario(this.$);
|
||||
|
||||
Future<void> execute();
|
||||
|
||||
Future<void> expectViewVisible(PatrolFinder patrolFinder) async {
|
||||
await $.waitUntilVisible(patrolFinder);
|
||||
expect(patrolFinder, findsWidgets);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:patrol/patrol.dart';
|
||||
|
||||
abstract class CoreRobot {
|
||||
@@ -6,10 +5,5 @@ abstract class CoreRobot {
|
||||
|
||||
CoreRobot(this.$);
|
||||
|
||||
Future<void> ensureViewVisible(PatrolFinder patrolFinder) async {
|
||||
await $.waitUntilVisible(patrolFinder);
|
||||
expect(patrolFinder, findsWidgets);
|
||||
}
|
||||
|
||||
dynamic ignoreException() => $.tester.takeException();
|
||||
}
|
||||
Reference in New Issue
Block a user