TF-4301 Add E2E tests for label creation and tagging from email view

This commit is contained in:
dab246
2026-03-06 19:08:20 +07:00
committed by Dat H. Pham
parent 190ccc7bc3
commit 1b62990f28
15 changed files with 135 additions and 49 deletions
@@ -0,0 +1,11 @@
import 'package:flutter_test/flutter_test.dart';
import '../../base/core_robot.dart';
class AddLabelModalRobot extends CoreRobot {
AddLabelModalRobot(super.$);
Future<void> tapCreateANewLabel() async {
await $(#create_a_new_label_button).tap();
}
}
@@ -15,4 +15,10 @@ class LabelRobot extends CoreRobot {
Future<void> tapCreateNewLabelButton() async {
await $(#labels_bar_widget_add_new_label_button).tap();
}
Future<void> openLabelByName(String name) async {
final item = $(LabelListItem).$(name);
await $.scrollUntilVisible(finder: item);
await item.tap();
}
}