TF-4308 Add E2E tests for ChooseLabelModal and NoLabelYetWidget

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2026-04-17 14:49:52 +07:00
committed by Dat H. Pham
parent a693ceb456
commit cb41b5690b
8 changed files with 263 additions and 0 deletions
@@ -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($),
);
}
@@ -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($),
);
}