Hide cadastres if there is none
This commit is contained in:
parent
380d2c5efa
commit
ab31087f23
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
- champ.selections_utilisateur.each do |geo_area|
|
||||
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }
|
||||
|
||||
- if champ.cadastres?
|
||||
- if champ.cadastres.present?
|
||||
.areas-title Parcelles cadastrales
|
||||
.areas
|
||||
%ul
|
||||
|
|
|
@ -122,7 +122,6 @@ feature 'As an administrateur I can edit types de champ', js: true do
|
|||
preview_window = window_opened_by { click_on 'Prévisualiser le formulaire' }
|
||||
within_window(preview_window) do
|
||||
expect(page).to have_content('Libellé de champ carte')
|
||||
expect(page).to have_content('Parcelles cadastrales')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue