TF-4308 Add E2E tests for ChooseLabelModal and NoLabelYetWidget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import '../../base/test_base.dart';
|
||||
import '../../scenarios/labels/create_label_from_choose_label_modal_with_existing_labels_scenario.dart';
|
||||
|
||||
void main() {
|
||||
TestBase().runPatrolTest(
|
||||
description:
|
||||
'Should show "Create a label" button in Choose Label modal when labels exist, and create a new label successfully',
|
||||
scenarioBuilder: ($) =>
|
||||
CreateLabelFromChooseLabelModalWithExistingLabelsScenario($),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import '../../base/test_base.dart';
|
||||
import '../../scenarios/labels/create_label_from_no_label_yet_widget_scenario.dart';
|
||||
|
||||
void main() {
|
||||
TestBase().runPatrolTest(
|
||||
description:
|
||||
'Should create a label from NoLabelYetWidget and show it in the Choose Label modal list',
|
||||
scenarioBuilder: ($) => CreateLabelFromNoLabelYetWidgetScenario($),
|
||||
);
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import '../../base/test_base.dart';
|
||||
import '../../scenarios/labels/display_no_label_yet_widget_when_open_choose_label_modal_scenario.dart';
|
||||
|
||||
void main() {
|
||||
TestBase().runPatrolTest(
|
||||
description:
|
||||
'Should display NoLabelYetWidget when opening Choose Label modal with no labels',
|
||||
scenarioBuilder: ($) =>
|
||||
DisplayNoLabelYetWidgetWhenOpenChooseLabelModalScenario($),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user