Test: use APPLICATION_NAME to deal nicely with custom configuration

This commit is contained in:
François Vantomme 2021-03-08 10:37:31 +01:00 committed by Fabrice Gangler
parent 12024a14f7
commit a596df9a4a
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ feature 'Signing up:' do
before do
visit commencer_path(path: procedure.path)
click_on 'Créer un compte demarches-simplifiees.fr'
click_on "Créer un compte #{APPLICATION_NAME}"
expect(page).to have_selector('.suspect-email', visible: false)
fill_in 'Email', with: 'bidou@yahoo.rf'
fill_in 'Mot de passe', with: '12345'
@ -49,7 +49,7 @@ feature 'Signing up:' do
scenario 'a new user cant sign-up with too short password when visiting a procedure' do
visit commencer_path(path: procedure.path)
click_on 'Créer un compte demarches-simplifiees.fr'
click_on "Créer un compte #{APPLICATION_NAME}"
expect(page).to have_current_path new_user_registration_path
sign_up_with user_email, '1234567'