Re-enable mail_bcc field in mail method settings

This feels safer because we don't risk messing up with any instance's
operations while still moving us towards removing this page.
This commit is contained in:
Pau Perez
2021-02-02 12:16:55 +01:00
parent 20b9ac89b8
commit cdcda46bff
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
.field
= label_tag :mail_bcc, t("spree.send_copy_of_all_mails_to")
%br/
= text_field_tag :mail_bcc, Spree::Config[:mail_bcc], disabled: true, class: 'fullwidth'
= text_field_tag :mail_bcc, Spree::Config[:mail_bcc], maxlength: 256, class: 'fullwidth'
%br/
%span.info
= t("spree.smtp_send_copy_to_this_addresses")

View File

@@ -12,7 +12,7 @@ describe "Mail Methods" do
it "only allows changing the mails_from setting" do
fill_in 'mails_from', with: 'ofn@example.com'
expect(page).to have_field('mail_bcc', disabled: true)
fill_in 'mail_bcc', with: 'bcc@example.com'
expect(page).to have_field('intercept_email', disabled: true)
click_button 'Update'