TF-3517 Add integration test for case Save draft without Reply-To & reopen it

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-02-25 18:47:38 +07:00
committed by Dat H. Pham
parent bd8c5ccfbf
commit 06b123e518
12 changed files with 201 additions and 54 deletions
@@ -1,4 +1,6 @@
import 'package:core/core.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:model/email/prefix_email_address.dart';
import 'package:tmail_ui_user/features/composer/presentation/composer_view.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -18,17 +20,24 @@ class SendEmailScenario extends BaseTestScenario {
final threadRobot = ThreadRobot($);
final composerRobot = ComposerRobot($);
final imagePaths = ImagePaths();
await threadRobot.openComposer();
await _expectComposerViewVisible();
await composerRobot.grantContactPermission();
await composerRobot.addRecipient(email);
await composerRobot.addRecipient(additionalRecipient);
await composerRobot.addRecipientIntoField(
prefixEmailAddress: PrefixEmailAddress.to,
email: email,
);
await composerRobot.addRecipientIntoField(
prefixEmailAddress: PrefixEmailAddress.to,
email: additionalRecipient,
);
await composerRobot.addSubject(subject);
await composerRobot.addContent(content);
await composerRobot.sendEmail();
await composerRobot.sendEmail(imagePaths);
await _expectSendEmailSuccessToast();
}