TF-3554 Add provisioning for integration test reply email
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -14,12 +14,12 @@ import '../robots/thread_robot.dart';
|
||||
|
||||
class ForwardEmailScenario extends BaseTestScenario {
|
||||
|
||||
static const String queryString = 'Fwd: Forward email to Bob';
|
||||
|
||||
const ForwardEmailScenario(super.$);
|
||||
|
||||
@override
|
||||
Future<void> runTestLogic() async {
|
||||
const emailSubject = 'Forward email';
|
||||
|
||||
final threadRobot = ThreadRobot($);
|
||||
final searchRobot = SearchRobot($);
|
||||
final emailRobot = EmailRobot($);
|
||||
@@ -28,13 +28,11 @@ class ForwardEmailScenario extends BaseTestScenario {
|
||||
await threadRobot.openSearchView();
|
||||
await _expectSearchViewVisible();
|
||||
|
||||
await searchRobot.enterQueryString(emailSubject);
|
||||
await searchRobot.enterQueryString(queryString);
|
||||
await searchRobot.tapOnShowAllResultsText();
|
||||
await _expectSearchResultEmailListVisible();
|
||||
|
||||
await $.pumpAndSettle(duration: const Duration(seconds: 2));
|
||||
|
||||
await searchRobot.openEmailWithSubject(emailSubject);
|
||||
await searchRobot.openEmailWithSubject(queryString);
|
||||
await _expectForwardEmailButtonVisible();
|
||||
|
||||
await emailRobot.onTapForwardEmail();
|
||||
|
||||
@@ -19,7 +19,7 @@ Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
Forward email
|
||||
Fwd: Forward email to Bob
|
||||
|
||||
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Define users and folders
|
||||
users=("alice" "bob" "brian" "charlotte" "david" "emma")
|
||||
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar" "Reply Emails")
|
||||
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar" "Reply Emails" "Reply Emails")
|
||||
|
||||
# Add users
|
||||
for user in "${users[@]}"; do
|
||||
@@ -72,6 +72,15 @@ james-cli ImportEml \#private "bob@example.com" "Calendar" "/root/conf/integrati
|
||||
# Import emails into 'Reply Emails' folder for user Bob
|
||||
replyEmailsEML=("reply-all.eml" "reply-to-list.eml" "with-reply-to.eml" "without-reply-to.eml" "reply-thread.eml")
|
||||
|
||||
for eml in "${replyEmailsEML[@]}"; do
|
||||
echo "Importing $eml into 'Reply Emails' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Reply Emails" "/root/conf/integration_test/eml/reply_email/$eml"
|
||||
done
|
||||
|
||||
# For test reply email
|
||||
# Import emails into 'Reply Emails' folder for user Bob
|
||||
replyEmailsEML=("reply-all.eml" "reply-to-list.eml" "with-reply-to.eml" "without-reply-to.eml")
|
||||
|
||||
for eml in "${replyEmailsEML[@]}"; do
|
||||
echo "Importing $eml into 'Reply Emails' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Reply Emails" "/root/conf/integration_test/eml/reply_email/$eml"
|
||||
|
||||
Reference in New Issue
Block a user