TF-4370 Add E2E test for test case create new a tag
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:core/presentation/views/text/text_field_builder.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:tmail_ui_user/features/base/widget/label_input_field_builder.dart';
|
||||
import 'package:tmail_ui_user/features/labels/presentation/models/label_action_type.dart';
|
||||
import 'package:tmail_ui_user/features/labels/presentation/widgets/create_new_label_modal.dart';
|
||||
|
||||
@@ -10,12 +9,17 @@ class CreateLabelModalRobot extends CoreRobot {
|
||||
CreateLabelModalRobot(super.$);
|
||||
|
||||
Future<void> enterNewLabelName(String name) async {
|
||||
await $(CreateNewLabelModal)
|
||||
.$(LabelInputFieldBuilder)
|
||||
await $(#label_name_input_field)
|
||||
.$(TextFieldBuilder)
|
||||
.enterText(name);
|
||||
}
|
||||
|
||||
Future<void> enterNewLabelDescription(String description) async {
|
||||
await $(#label_description_input_field)
|
||||
.$(TextFieldBuilder)
|
||||
.enterText(description);
|
||||
}
|
||||
|
||||
Future<void> tapPositiveActionButton(LabelActionType actionType) async {
|
||||
if (actionType == LabelActionType.create) {
|
||||
await $(CreateNewLabelModal).$(#create_label_button_action).tap();
|
||||
|
||||
@@ -11,4 +11,8 @@ class LabelRobot extends CoreRobot {
|
||||
await $.scrollUntilVisible(finder: item);
|
||||
await item.longPress();
|
||||
}
|
||||
|
||||
Future<void> tapCreateNewLabelButton() async {
|
||||
await $(#labels_bar_widget_add_new_label_button).tap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user