Merge pull request #9853 from mfo/US/fix-expert-link-to-dossiers
ETQ expert: lorsque je me connecte, je suis redirigé vers la page des avis, non pas vers la page de mes dossiers
This commit is contained in:
commit
9a5d908851
6 changed files with 28 additions and 4 deletions
|
@ -37,7 +37,7 @@ describe 'Inviting an expert:' do
|
|||
sign_in_with avis.expert.email, password
|
||||
|
||||
expect(page).to have_content('Connecté(e).')
|
||||
expect(page).to have_current_path(dossiers_path) # Ideally we'd want `expert_all_avis_path` instead
|
||||
expect(page).to have_current_path(expert_all_avis_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -52,9 +52,9 @@ describe 'Inviting an expert:' do
|
|||
expect(page).to have_current_path(new_user_session_path)
|
||||
login_as avis.expert.user, scope: :user
|
||||
sign_in_with(avis.expert.email, 'This is a very complicated password !')
|
||||
click_on 'Passer en expert'
|
||||
expect(page).to have_current_path(expert_all_avis_path)
|
||||
expect(page).to have_text('1 avis à donner')
|
||||
expect(page).to have_content("connecté en tant qu’expert")
|
||||
click_on 'Passer en usager'
|
||||
expect(page).to have_current_path(dossiers_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue