ajout d'un test auto pour l'affichage de la date de dépot coté instructeur
This commit is contained in:
parent
8ae468e8c7
commit
4ff9adde27
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,7 @@ describe 'new_user/dossiers/demande.html.haml', type: :view do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders the dossier infos' do
|
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('Identité')
|
||||||
expect(rendered).to have_text('Demande')
|
expect(rendered).to have_text('Demande')
|
||||||
expect(rendered).to have_text('Pièces jointes')
|
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) }
|
let(:dossier) { create(:dossier, :en_instruction, :with_entreprise, procedure: procedure) }
|
||||||
it { is_expected.not_to have_link('Modifier le dossier') }
|
it { is_expected.not_to have_link('Modifier le dossier') }
|
||||||
end
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue