Detox/E2E: Minor fix to email (#5676)

This commit is contained in:
Joseph Baylon 2021-09-13 16:38:40 -07:00 committed by GitHub
parent dc076713e6
commit ccba75c8cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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',

View file

@ -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
'<skip-local-time-check>',
'',
channelDisplayName,
'',
message,
'',
'Want to change your notifications settings?',