ajout d'un test auto pour l'affichage de la date de dépot coté instructeur

This commit is contained in:
clemkeirua 2019-02-19 11:41:20 +01:00 committed by Pierre de La Morinerie
parent 8ae468e8c7
commit 4ff9adde27

View file

@ -16,6 +16,7 @@ describe 'new_user/dossiers/demande.html.haml', type: :view do
end
it 'renders the dossier infos' do
expect(rendered).to have_text('Déposé le')
expect(rendered).to have_text('Identité')
expect(rendered).to have_text('Demande')
expect(rendered).to have_text('Pièces jointes')
@ -29,4 +30,10 @@ describe 'new_user/dossiers/demande.html.haml', type: :view do
let(:dossier) { create(:dossier, :en_instruction, :with_entreprise, procedure: procedure) }
it { is_expected.not_to have_link('Modifier le dossier') }
end
context 'when the dossier has no en_construction_at date' do
let(:dossier) { create(:dossier, :with_entreprise, procedure: procedure) }
it { expect(rendered).not_to have_text('Déposé le') }
end
end