TF-3260 Add integration test for app grid

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-12-23 08:56:55 +07:00
committed by Dat H. Pham
parent dce74b43e9
commit bbb98a2a49
10 changed files with 161 additions and 8 deletions
@@ -0,0 +1,12 @@
import 'package:flutter_test/flutter_test.dart';
import '../base/core_robot.dart';
class AppGridRobot extends CoreRobot {
AppGridRobot(super.$);
Future<void> openAppInAppGridByAppName(String appName) async {
await $(find.text(appName)).tap();
}
}
@@ -0,0 +1,10 @@
import '../base/core_robot.dart';
class MailboxMenuRobot extends CoreRobot {
MailboxMenuRobot(super.$);
Future<void> openAppGrid() async {
await $(#toggle_app_grid_button).tap();
}
}
+4 -6
View File
@@ -20,14 +20,12 @@ class ThreadRobot extends CoreRobot {
await $(ThreadView).$(SearchBarView).tap();
}
Future<void> openMailbox(String mailboxName) async {
await $(#mobile_mailbox_menu_button).tap();
await $.scrollUntilVisible(finder: $(mailboxName));
await $(mailboxName).tap();
}
Future<void> openEmailWithSubject(String subject) async {
await $.scrollUntilVisible(finder: $(subject));
await $(subject).tap();
}
Future<void> openMailbox() async {
await $(#mobile_mailbox_menu_button).tap();
}
}