From ccba75c8cda960e60c60d98f0c8f2172e4fef7c6 Mon Sep 17 00:00:00 2001 From: Joseph Baylon Date: Mon, 13 Sep 2021 16:38:40 -0700 Subject: [PATCH] Detox/E2E: Minor fix to email (#5676) --- detox/e2e/support/test_config.js | 2 +- detox/e2e/support/utils/email.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/detox/e2e/support/test_config.js b/detox/e2e/support/test_config.js index f435c6cad..05e7f2f35 100644 --- a/detox/e2e/support/test_config.js +++ b/detox/e2e/support/test_config.js @@ -4,7 +4,7 @@ module.exports = { serverUrl: process.env.SITE_URL || (process.env.IOS ? 'http://localhost:8065' : 'http://10.0.2.2:8065'), siteUrl: process.env.SITE_URL || 'http://localhost:8065', - smtpUrl: process.env.SMTP_URL || 'http://localhost:10080', + smtpUrl: process.env.SMTP_URL || 'http://localhost:9001', adminEmail: process.env.ADMIN_EMAIL || 'sysadmin@sample.mattermost.com', adminUsername: process.env.ADMIN_USERNAME || 'sysadmin', adminPassword: process.env.ADMIN_PASSWORD || 'Sys@dmin-sample1', diff --git a/detox/e2e/support/utils/email.js b/detox/e2e/support/utils/email.js index db5858337..f5cd347af 100644 --- a/detox/e2e/support/utils/email.js +++ b/detox/e2e/support/utils/email.js @@ -11,7 +11,7 @@ import testConfig from '@support/test_config'; * @returns {string} email url */ export const getEmailUrl = () => { - const smtpUrl = testConfig.smtpUrl || 'http://localhost:10080'; + const smtpUrl = testConfig.smtpUrl || 'http://localhost:9001'; return `${smtpUrl}/api/v1/mailbox`; }; @@ -82,6 +82,7 @@ export const getMentionEmailTemplate = (sender, message, postId, siteName, teamN '', '', channelDisplayName, + '', message, '', 'Want to change your notifications settings?',