wrap existing spec in specific context

This commit is contained in:
simon lehericey 2022-08-08 16:27:02 +02:00
parent f77a6cfc14
commit 0b90c81c3a

View file

@ -269,6 +269,7 @@ describe 'The user' do
context 'with condition' do context 'with condition' do
include Logic include Logic
context 'with a visibilite in cascade' do
let(:procedure) do let(:procedure) do
procedure = create(:procedure, :for_individual).tap do |p| procedure = create(:procedure, :for_individual).tap do |p|
p.draft_revision.add_type_de_champ(type_champ: :integer_number, libelle: 'age') p.draft_revision.add_type_de_champ(type_champ: :integer_number, libelle: 'age')
@ -330,6 +331,7 @@ describe 'The user' do
expect(page).to have_css('label', text: 'tonnage', visible: true) expect(page).to have_css('label', text: 'tonnage', visible: true)
end end
end end
end
context 'draft autosave' do context 'draft autosave' do
scenario 'autosave a draft', js: true do scenario 'autosave a draft', js: true do