TF-3493 Upgrade Patrol to version 3.14.0 and Patrol_CLI to version 3.5.0

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-02-20 19:31:10 +07:00
committed by Dat H. Pham
parent 687c06aba5
commit 81da9e6e07
11 changed files with 156 additions and 38 deletions
+18 -4
View File
@@ -17,16 +17,30 @@ class ComposerRobot extends CoreRobot {
ComposerRobot(super.$);
Future<void> addRecipient(String email) async {
await $(RecipientComposerWidget)
.which<RecipientComposerWidget>((widget) => widget.prefix == PrefixEmailAddress.to)
.enterText(email);
final finder = $(RecipientComposerWidget)
.which<RecipientComposerWidget>((widget) => widget.prefix == PrefixEmailAddress.to);
final isTextFieldFocused = finder
.which<RecipientComposerWidget>((view) => view.focusNode?.hasFocus ?? false)
.exists;
if (!isTextFieldFocused) {
await finder.tap();
}
await finder.enterText(email);
await $(RecipientSuggestionItemWidget)
.which<RecipientSuggestionItemWidget>((widget) => widget.emailAddress.email?.contains(email) ?? false)
.tap();
}
Future<void> addSubject(String subject) async {
await $(SubjectComposerWidget).enterText(subject);
final finder = $(SubjectComposerWidget);
final isTextFieldFocused = finder
.which<SubjectComposerWidget>((view) => view.focusNode?.hasFocus ?? false)
.exists;
if (!isTextFieldFocused) {
await finder.tap();
}
await finder.enterText(subject);
}
Future<void> addContent(String content) async {