Setup I18n for titles
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 26s

This commit is contained in:
sto
2025-03-27 12:15:27 +01:00
parent 26b8064553
commit 497768610d
10 changed files with 51 additions and 37 deletions

View File

@@ -10,7 +10,7 @@ RSpec.feature "Login", type: :feature do
fill_in "Password", with: user.password
click_button "Sign in"
expect(page).not_to have_content("Login")
expect(page).not_to have_content(I18n.t("sessions.new.title"))
end
it "should fail to log in the user with an incorrect email address" do
@@ -19,7 +19,7 @@ RSpec.feature "Login", type: :feature do
fill_in "Password", with: user.password
click_button "Sign in"
expect(page).to have_content("Login")
expect(page).to have_content(I18n.t("sessions.new.title"))
end
it "should fail to log in the user with an incorrect password" do
@@ -28,7 +28,7 @@ RSpec.feature "Login", type: :feature do
fill_in "Password", with: Faker::Internet.unique.password
click_button "Sign in"
expect(page).to have_content("Login")
expect(page).to have_content(I18n.t("sessions.new.title"))
end
end
end