Revert "fix: Welcome email copy changes and canned response API error handling [cw-1290] (#6905)"

This reverts commit 07aaa046c1.
This commit is contained in:
Sojan
2023-05-10 16:43:18 +05:30
parent 07aaa046c1
commit 65bad90b69
7 changed files with 32 additions and 42 deletions

View File

@@ -22,7 +22,7 @@ RSpec.describe 'Confirmation Instructions', type: :mailer do
end
it 'uses the user\'s name' do
expect(mail.body).to match("Hi #{CGI.escapeHTML(confirmable_user.name)},")
expect(mail.body).to match("Welcome, #{CGI.escapeHTML(confirmable_user.name)}!")
end
it 'does not refer to the inviter and their account' do
@@ -39,7 +39,7 @@ RSpec.describe 'Confirmation Instructions', type: :mailer do
it 'refers to the inviter and their account' do
expect(mail.body).to match(
"#{CGI.escapeHTML(inviter_val.name)}, with #{CGI.escapeHTML(account.name)}, has invited you to try out Chatwoot."
"#{CGI.escapeHTML(inviter_val.name)}, with #{CGI.escapeHTML(account.name)}, has invited you to try out Chatwoot!"
)
end