mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Ensure a valid locale is persisted during login
This action has to be performed here and not in I18nHelper, as spree_current_user is not initialized yet during the other checks / setting the selected locale value in the app
This commit is contained in:
@@ -161,7 +161,7 @@ feature "Authentication", js: true do
|
||||
user.update!(locale: "xx")
|
||||
end
|
||||
|
||||
xit "logs in successfully and resets the user's locale to the default" do
|
||||
it "logs in successfully and resets the user's locale to the default" do
|
||||
fill_in_and_submit_login_form(user)
|
||||
expect_logged_in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user