TF-4229 Add integration test on mobile for case search_email_with_tag_scenario
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:tmail_ui_user/features/base/widget/context_menu/context_menu_dialog_item.dart';
|
||||
|
||||
import '../base/core_robot.dart';
|
||||
|
||||
class LabelListContextMenuRobot extends CoreRobot {
|
||||
LabelListContextMenuRobot(super.$);
|
||||
|
||||
Future<void> selectLabelByName(String name) async {
|
||||
final item = $(ContextMenuDialogItem).$(name);
|
||||
await $.scrollUntilVisible(finder: item);
|
||||
await item.tap();
|
||||
}
|
||||
}
|
||||
@@ -95,4 +95,8 @@ class SearchRobot extends CoreRobot {
|
||||
);
|
||||
await $(#mobile_hasAttachment_search_filter_button).tap();
|
||||
}
|
||||
|
||||
Future<void> openLabelListModal() async {
|
||||
await $(#mobile_labels_search_filter_button).tap();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user