docbrown/spec/system/authentication/user_request_confirmation_spec.rb
yheuhtozr c4778d832e
app/controllers & decorators i18n (#16126)
* app/controllers (& decorators) i18n etc

* tidy key names

* update keys

* delete ja.yml

* delete an involved ja.yml

* fix for PR review

* fix for spec

* delete ja.yml
2022-02-03 13:35:56 -05:00

13 lines
484 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.email)
expect(page).to have_content(expected_message)
end
end