From 9043bed3a04bb70b8caaec193a54e87143e55df1 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 22 Nov 2022 15:17:15 +0100 Subject: [PATCH] refactor(procedure_presentation): add required tags --- app/views/administrateurs/procedures/_informations.html.haml | 4 ++-- spec/system/administrateurs/procedure_creation_spec.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/administrateurs/procedures/_informations.html.haml b/app/views/administrateurs/procedures/_informations.html.haml index d39df9c68..972a36d51 100644 --- a/app/views/administrateurs/procedures/_informations.html.haml +++ b/app/views/administrateurs/procedures/_informations.html.haml @@ -6,12 +6,12 @@ = f.label :libelle do Titre de la démarche %span.mandatory * -= f.text_field :libelle, class: 'form-control', placeholder: 'Titre' += f.text_field :libelle, class: 'form-control', placeholder: 'Titre', required: true = f.label :description do Description %span.mandatory * -= f.text_area :description, rows: '6', placeholder: 'Description de la démarche, destinataires, etc. ', class: 'form-control' += f.text_area :description, rows: '6', placeholder: 'Description de la démarche, destinataires, etc. ', class: 'form-control', required: true %h3.header-subsection Logo de la démarche = render Attachment::EditComponent.new(attached_file: @procedure.logo, view_as: :link) diff --git a/spec/system/administrateurs/procedure_creation_spec.rb b/spec/system/administrateurs/procedure_creation_spec.rb index e7442627a..c9a684209 100644 --- a/spec/system/administrateurs/procedure_creation_spec.rb +++ b/spec/system/administrateurs/procedure_creation_spec.rb @@ -21,7 +21,6 @@ describe 'Creating a new procedure', js: true do fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3' click_on 'Créer la démarche' - expect(page).to have_text('Le champ « Libelle » doit être rempli') fill_in_dummy_procedure_details click_on 'Créer la démarche'