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:
Matt-Yorkley
2020-07-02 14:35:02 +02:00
parent 91880cdbec
commit 4e08d2049f
2 changed files with 9 additions and 1 deletions

View File

@@ -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