instructeurs: fix expert creation not to use Instructeur.email
It kind of worked until now, because the email field is disabled, and thus never accessed. But better make it clean, by accessing an object (User) where the email field actually exists.
This commit is contained in:
parent
38f994a151
commit
d78d206544
4 changed files with 4 additions and 4 deletions
|
@ -181,7 +181,7 @@ feature 'Instructing a dossier:' do
|
|||
|
||||
def avis_sign_up(avis, email)
|
||||
visit sign_up_instructeur_avis_path(avis, email)
|
||||
fill_in 'instructeur_password', with: 'démarches-simplifiées-pwd'
|
||||
fill_in 'user_password', with: 'démarches-simplifiées-pwd'
|
||||
click_on 'Créer un compte'
|
||||
expect(page).to have_current_path(instructeur_avis_index_path)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue