Files
openfoodnetwork/spec/features/admin/configuration/mail_methods_spec.rb
Pau Perez cdcda46bff 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.
2021-02-02 12:16:55 +01:00

23 lines
594 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe "Mail Methods" do
include AuthenticationHelper
before { login_as_admin_and_visit spree.edit_admin_general_settings_path }
context "edit" do
before { click_link "Mail Method Settings" }
it "only allows changing the mails_from setting" do
fill_in 'mails_from', with: 'ofn@example.com'
fill_in 'mail_bcc', with: 'bcc@example.com'
expect(page).to have_field('intercept_email', disabled: true)
click_button 'Update'
expect(page).to have_content('successfully updated!')
end
end
end