Browse Source

Use translation string in test

pull/457/head
baarkerlounger 3 years ago
parent
commit
4045f81589
  1. 2
      spec/features/admin_panel_spec.rb
  2. 2
      spec/features/user_spec.rb

2
spec/features/admin_panel_spec.rb

@ -39,7 +39,7 @@ RSpec.describe "Admin Panel" do
fill_in("code", with: otp) fill_in("code", with: otp)
click_button("Submit") click_button("Submit")
expect(page).to have_content("Dashboard") expect(page).to have_content("Dashboard")
expect(page).to have_content("Two factor authentication successful.") expect(page).to have_content(I18n.t("devise.two_factor_authentication.success"))
end end
context "but it is more than 15 minutes old" do context "but it is more than 15 minutes old" do

2
spec/features/user_spec.rb

@ -374,7 +374,7 @@ RSpec.describe "User Features" do
fill_in("code", with: otp) fill_in("code", with: otp)
click_button("Submit") click_button("Submit")
expect(page).to have_content("Logs") expect(page).to have_content("Logs")
expect(page).to have_content("Two factor authentication successful.") expect(page).to have_content(I18n.t("devise.two_factor_authentication.success"))
end end
context "but it is more than 15 minutes old" do context "but it is more than 15 minutes old" do

Loading…
Cancel
Save