TF-4236 Fix guard delete UI when no handler is provided.
This commit is contained in:
@@ -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($),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user