fix specs - forget to remove description in siret context
This commit is contained in:
parent
31969b290b
commit
7f53120815
3 changed files with 3 additions and 13 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
- if !dossier_submission_is_closed?(@dossier)
|
||||
= form_for current_user, url: siret_dossier_path(@dossier), html: { class: 'form', method: 'post' } do |f|
|
||||
%h2.huge-title Identifier votre établissement
|
||||
%h2.fr-h4 Identifier votre établissement
|
||||
|
||||
%p.mb-1 Merci de remplir le numéro de SIRET de votre entreprise, administration ou association pour commencer la démarche.
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
module Capybara
|
||||
class Session
|
||||
# Find the description of a procedure on the page
|
||||
# Usage: expect(page).to have_procedure_description(procedure)
|
||||
def has_procedure_description?(procedure)
|
||||
has_content?(procedure.libelle) && has_content?(procedure.description) && has_content?(procedure.service.email)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -19,7 +19,6 @@ describe 'Creating a new dossier:' do
|
|||
click_on 'Commencer la démarche'
|
||||
|
||||
expect(page).to have_current_path identite_dossier_path(user.reload.dossiers.last)
|
||||
expect(page).to have_procedure_description(procedure)
|
||||
expect(page).to have_title(libelle)
|
||||
|
||||
choose 'Monsieur'
|
||||
|
@ -91,7 +90,7 @@ describe 'Creating a new dossier:' do
|
|||
click_on 'Commencer la démarche'
|
||||
|
||||
expect(page).to have_current_path siret_dossier_path(dossier)
|
||||
expect(page).to have_procedure_description(procedure)
|
||||
expect(page).to have_content(procedure.libelle)
|
||||
|
||||
fill_in 'Numéro SIRET', with: siret
|
||||
click_on 'Valider'
|
||||
|
@ -108,7 +107,7 @@ describe 'Creating a new dossier:' do
|
|||
click_on 'Commencer la démarche'
|
||||
|
||||
expect(page).to have_current_path(siret_dossier_path(dossier))
|
||||
expect(page).to have_procedure_description(procedure)
|
||||
expect(page).to have_content(procedure.libelle)
|
||||
|
||||
fill_in 'Numéro SIRET', with: '0000'
|
||||
click_on 'Valider'
|
||||
|
|
Loading…
Reference in a new issue