From 982e604b0780e9a2cf29b8008e804f38c2e52963 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 12 Jul 2022 18:32:03 +0200 Subject: [PATCH] feat(dossier): test check conditions on en construction dossier --- spec/system/users/brouillon_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/system/users/brouillon_spec.rb b/spec/system/users/brouillon_spec.rb index da99b2deb..2db3bba96 100644 --- a/spec/system/users/brouillon_spec.rb +++ b/spec/system/users/brouillon_spec.rb @@ -290,6 +290,14 @@ describe 'The user' do expect(page).to have_field(type_de_champ.libelle, with: '', visible: false) choose('Oui') expect(page).to have_field(type_de_champ.libelle, with: '', visible: true) + + click_on 'Déposer le dossier' + click_on 'Accéder à votre dossier' + click_on 'Modifier mon dossier' + + expect(page).to have_field(type_de_champ.libelle, with: '', visible: true) + choose('Non') + expect(page).to have_field(type_de_champ.libelle, with: '', visible: false) end end