TF-4236 Fix guard delete UI when no handler is provided.

This commit is contained in:
dab246
2026-01-20 16:21:37 +07:00
committed by Dat H. Pham
parent 326f5e46f5
commit 879b18bc45
13 changed files with 29 additions and 23 deletions
+6 -1
View File
@@ -88,6 +88,11 @@ class EmailRobot extends CoreRobot {
}
Future<void> tapRemoveLabelButton(String labelDisplayName) async {
await $(EmailSubjectWidget).$(LabelWidget).$(TagWidget).$(InkWell).tap();
await $(EmailSubjectWidget)
.$(LabelWidget)
.$(TagWidget)
.which<TagWidget>((widget) => widget.text == labelDisplayName)
.$(InkWell)
.tap();
}
}
@@ -42,6 +42,7 @@ class ThreadRobot extends CoreRobot {
);
await $.waitUntilVisible(email);
await email.tap();
await $.pump(const Duration(seconds: 2));
}
Future<void> openMailbox() async {
@@ -48,7 +48,6 @@ class RemoveALabelFromEmailScenario extends BaseTestScenario
await _expectEmailListDisplayedCorrectByTag(labelDisplayName);
await threadRobot.openEmailWithLabel(labelDisplayName);
await $.pumpAndSettle(duration: const Duration(seconds: 1));
await _expectLabelDisplayedOnEmailSubject(labelDisplayName);
await emailRobot.tapRemoveLabelButton(labelDisplayName);
@@ -4,7 +4,7 @@ import '../../scenarios/labels/remove_a_label_from_email_scenario.dart';
void main() {
TestBase().runPatrolTest(
description:
'Should remove tag on email subject when click click on the cross on a tag in the opened mail',
'Should remove tag on email subject when clicking on the cross on a tag in the opened mail',
scenarioBuilder: ($) => RemoveALabelFromEmailScenario($),
);
}