TF-4301 Add E2E tests for label creation and tagging from email view
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user