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 {
|
class ForwardEmailScenario extends BaseTestScenario {
|
||||||
|
|
||||||
|
static const String queryString = 'Fwd: Forward email to Bob';
|
||||||
|
|
||||||
const ForwardEmailScenario(super.$);
|
const ForwardEmailScenario(super.$);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> runTestLogic() async {
|
Future<void> runTestLogic() async {
|
||||||
const emailSubject = 'Forward email';
|
|
||||||
|
|
||||||
final threadRobot = ThreadRobot($);
|
final threadRobot = ThreadRobot($);
|
||||||
final searchRobot = SearchRobot($);
|
final searchRobot = SearchRobot($);
|
||||||
final emailRobot = EmailRobot($);
|
final emailRobot = EmailRobot($);
|
||||||
@@ -28,13 +28,11 @@ class ForwardEmailScenario extends BaseTestScenario {
|
|||||||
await threadRobot.openSearchView();
|
await threadRobot.openSearchView();
|
||||||
await _expectSearchViewVisible();
|
await _expectSearchViewVisible();
|
||||||
|
|
||||||
await searchRobot.enterQueryString(emailSubject);
|
await searchRobot.enterQueryString(queryString);
|
||||||
await searchRobot.tapOnShowAllResultsText();
|
await searchRobot.tapOnShowAllResultsText();
|
||||||
await _expectSearchResultEmailListVisible();
|
await _expectSearchResultEmailListVisible();
|
||||||
|
|
||||||
await $.pumpAndSettle(duration: const Duration(seconds: 2));
|
await searchRobot.openEmailWithSubject(queryString);
|
||||||
|
|
||||||
await searchRobot.openEmailWithSubject(emailSubject);
|
|
||||||
await _expectForwardEmailButtonVisible();
|
await _expectForwardEmailButtonVisible();
|
||||||
|
|
||||||
await emailRobot.onTapForwardEmail();
|
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
|
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||||
Content-Language: en-US
|
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
|
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Define users and folders
|
# Define users and folders
|
||||||
users=("alice" "bob" "brian" "charlotte" "david" "emma")
|
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
|
# Add users
|
||||||
for user in "${users[@]}"; do
|
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
|
# 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")
|
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
|
for eml in "${replyEmailsEML[@]}"; do
|
||||||
echo "Importing $eml into 'Reply Emails' folder for user bob"
|
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"
|
james-cli ImportEml \#private "bob@example.com" "Reply Emails" "/root/conf/integration_test/eml/reply_email/$eml"
|
||||||
|
|||||||
Reference in New Issue
Block a user