Add E2E test for case show full recipient field when expand all

This commit is contained in:
dab246
2025-11-20 10:47:35 +07:00
committed by Dat H. Pham
parent 6f6284c21f
commit 2fe9021c7f
14 changed files with 90 additions and 3 deletions
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/composer/change_identity_in_draft_email_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see new identity in From field when select new identity and save as draft successfully',
scenarioBuilder: ($) => ChangeIdentityInDraftEmailScenario($),
);
}
@@ -0,0 +1,10 @@
import '../../base/test_base.dart';
import '../../scenarios/composer/upload_attachment_and_inline_image_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see attachment and inline image '
'when upload success in composer',
scenarioBuilder: ($) => ComposerUploadAttachmentAndInlineImageScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/forward_email_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see HTML content contain enough: Subject, From, To, Cc, Bcc, Reply to',
scenarioBuilder: ($) => ForwardEmailScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/reply_email_with_content_contain_image_base64_data_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see inline image with cid when reply email with content contain image base64 data',
scenarioBuilder: ($) => ReplyEmailWithContentContainImageBase64DataScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/email/reply_to_own_sent_email_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should all To recipients when reply to own sent email',
scenarioBuilder: ($) => ReplyToOwnSentEmailScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/save_draft_then_close_composer_and_open_draft_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should not see email address in `Reply-To` field when save draft email without `Reply-To` then open draft email',
scenarioBuilder: ($) => SaveDraftThenCloseComposerAndOpenDraftScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/send_email_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see success toast when send email successfully',
scenarioBuilder: ($) => SendEmailScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/send_email_with_mark_as_important_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see email item has important flag icon when send email with mark as important successfully',
scenarioBuilder: ($) => SendEmailWithMarkAsImportantScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/send_email_with_read_receipt_enabled_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see read receipt dialog when user toggle read receipt and open read receipt email',
scenarioBuilder: ($) => SendEmailWithReadReceiptEnabledScenario($),
);
}
@@ -0,0 +1,10 @@
import '../../base/test_base.dart';
import '../../scenarios/composer/show_full_recipient_fields_when_expand_all_scenario.dart';
void main() {
TestBase().runPatrolTest(
description:
'Should see all recipient fields when expand all recipients in composer',
scenarioBuilder: ($) => ShowFullRecipientFieldsWhenExpandAllScenario($),
);
}
@@ -0,0 +1,9 @@
import '../../base/test_base.dart';
import '../../scenarios/composer/update_draft_email_with_message_success_toast_scenario.dart';
void main() {
TestBase().runPatrolTest(
description: 'Should see message success toast when edit draft email and save draft successfully',
scenarioBuilder: ($) => UpdateDraftEmailWithMessageSuccessToastScenario($),
);
}