* feat: remove the default email and cobine the periodic digest and the contact email under the Email section * refactor: rename the email_link to contact link and use the contact_email as a default and fallback to the ForemInstance.email * chore: alignment * feat: use the contact_email helper * feat: move the contact_email to the ForemInstance model * feat: use ForemInstance.contact_email instead of the application helper method * removed the application Helper * feat: set the dafault on the contact_email * fix: cypress tests * Update app/lib/constants/settings/general.rb Co-authored-by: Michael Kohl <me@citizen428.net> Co-authored-by: Michael Kohl <me@citizen428.net>
13 lines
492 B
Ruby
13 lines
492 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "/confirm-email", type: :system do
|
|
it "stays on the same page and displays a flash message", :aggregate_failures do
|
|
visit confirm_email_path
|
|
fill_in "user_email", with: "test@example.com"
|
|
click_button "Resend"
|
|
|
|
expect(page).to have_current_path(user_confirmation_path)
|
|
expected_message = I18n.t("confirmations_controller.email_sent", email: ForemInstance.contact_email)
|
|
expect(page).to have_content(expected_message)
|
|
end
|
|
end
|