diff --git a/spec/features/flows/sp_authentication_flows_spec.rb b/spec/features/flows/sp_authentication_flows_spec.rb index dbf9f2d0edb..e644323e188 100644 --- a/spec/features/flows/sp_authentication_flows_spec.rb +++ b/spec/features/flows/sp_authentication_flows_spec.rb @@ -10,6 +10,7 @@ it 'prompts the user to log in or sign up' do screenshot_and_save_page + screenshot_and_open_image end context 'when choosing Create Account' do @@ -35,7 +36,7 @@ @email = Faker::Internet.safe_email fill_in 'Email', with: @email click_button t('forms.buttons.submit.default') - @user = User.find_by(email: @email) + @user = User.find_with_email(@email) end it 'informs the user to check email' do