Files
openfoodnetwork/spec/system/admin/configuration/mail_methods_spec.rb
Maikel Linke dae8703b02 Remove unused feature to intercept emails
This option came from Spree and we never used it. The config input field
is disabled in the admin interface and I checked our managed databases.

I don't think that we will want this feature in the future either.
Staging sends unmodified emails which is more realistic and we haven't
had a use case to intercept those emails. There's still the BCC option
if we need additional access.
2023-04-26 13:50:31 +10:00

25 lines
537 B
Ruby

# frozen_string_literal: true
require 'system_helper'
describe "Mail Methods" do
include AuthenticationHelper
before do
login_as_admin
visit spree.edit_admin_general_settings_path
end
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'
click_button 'Update'
expect(page).to have_content('successfully updated!')
end
end
end