Merge pull request #6093 from adullact/6092_Test_use_APPLICATION_NAME_to_deal_nicely_with_custom_config
#6092 - Test: use APPLICATION_NAME to deal nicely with custom configuration
This commit is contained in:
commit
6e32117497
2 changed files with 4 additions and 4 deletions
|
@ -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 can’t 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'
|
||||
|
|
|
@ -8,14 +8,14 @@ RSpec.describe ConservationDeDonneesHelper, type: :helper do
|
|||
let(:dans_ds) { 3 }
|
||||
let(:hors_ds) { 6 }
|
||||
|
||||
it { is_expected.to eq(["Dans demarches-simplifiees.fr : 3 mois", "Par l’administration : 6 mois"]) }
|
||||
it { is_expected.to eq(["Dans #{APPLICATION_NAME} : 3 mois", "Par l’administration : 6 mois"]) }
|
||||
end
|
||||
|
||||
context "when only in-app retention time is set" do
|
||||
let(:dans_ds) { 3 }
|
||||
let(:hors_ds) { nil }
|
||||
|
||||
it { is_expected.to eq(["Dans demarches-simplifiees.fr : 3 mois"]) }
|
||||
it { is_expected.to eq(["Dans #{APPLICATION_NAME} : 3 mois"]) }
|
||||
end
|
||||
|
||||
context "when only out of app retention time is set" do
|
||||
|
|
Loading…
Reference in a new issue