Fixing feature test for backoffice connection

This commit is contained in:
JC 2017-01-03 11:40:47 +01:00
parent 5faa197e3b
commit 2f5584d097

View file

@ -7,7 +7,7 @@ feature 'when gestionnaire come to /backoffice and is not authenticated' do
visit backoffice_path
end
scenario 'he is redirected to /gestionnaires/sign_id' do
expect(page).to have_css('#gestionnaire_login')
expect(page).to have_css('#user_email')
end
context 'when user enter bad credentials' do
before do
@ -16,7 +16,7 @@ feature 'when gestionnaire come to /backoffice and is not authenticated' do
page.click_on 'Se connecter'
end
scenario 'he stay on the same page with an error' do
expect(page).to have_content('Email ou mot de passe incorrect.')
expect(page).to have_content('Mauvais couple login / mot de passe')
end
end
context 'when user enter good credentials' do