From f9e3beb323a10fcaa527935a5d373a4155c352cd Mon Sep 17 00:00:00 2001 From: wjwitek Date: Mon, 27 Feb 2023 10:03:09 +0100 Subject: [PATCH] switch locale back to en and add missing show_user_account --- spec/features/account_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/features/account_spec.rb b/spec/features/account_spec.rb index 6a061924..3af1f802 100644 --- a/spec/features/account_spec.rb +++ b/spec/features/account_spec.rb @@ -2,6 +2,7 @@ describe 'editing', js: true do before do allow_bypass_sign_in + I18n.locale = 'en' end scenario 'can edit an admin user' do @@ -34,6 +35,7 @@ fill_in 'Password Confirmation', with: 'foobar' click_button 'Update' + show_user_account expect(page).to have_text 'email@person.com' expect(page).to have_text 'Account updated' end @@ -55,6 +57,7 @@ fill_in 'Password Confirmation', with: 'foobar' click_button 'Update' + show_user_account expect(page).to have_text 'email@person.com' expect(page).to have_text 'Account updated' end