Correction teste view
This commit is contained in:
parent
ded5a6a28f
commit
ea0b64a9dc
5 changed files with 15 additions and 41 deletions
|
@ -11,14 +11,4 @@ describe 'dossiers/_infos_dossier.html.haml', type: :view do
|
|||
assign(:commentaires, dossier.commentaires)
|
||||
render
|
||||
end
|
||||
|
||||
context 'dossier is at state Draft' do
|
||||
it 'button Mettre à jours les informations is present' do
|
||||
expect(rendered).to have_content(maj_infos)
|
||||
expect(rendered).to have_selector("a[href='/dossiers/#{dossier.id}/description?back_url=recapitulatif']");
|
||||
end
|
||||
it 'button Soumettre is present' do
|
||||
expect(rendered).to have_selector("button[type=submit][value='#{soumettre}']");
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -35,13 +35,5 @@ describe 'recapitulatif/_commentaires_flux.html.haml', type: :view do
|
|||
it 'Champs de texte' do
|
||||
expect(rendered).to have_selector('textarea[id=texte_commentaire][name=texte_commentaire]')
|
||||
end
|
||||
|
||||
it 'Champs email' do
|
||||
expect(rendered).to have_selector('input[id=email_commentaire][name=email_commentaire]')
|
||||
end
|
||||
|
||||
it 'Champs email est prérempli' do
|
||||
expect(rendered).to have_content(email_commentaire)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue