refactor(champ): simplify repetition champ

This commit is contained in:
Paul Chavard 2022-04-28 15:06:40 +02:00
parent 39ecc669b1
commit 2d1370d123
8 changed files with 27 additions and 49 deletions

View file

@ -113,7 +113,7 @@ describe 'The user' do
click_on 'Ajouter un élément pour'
within '.row-1' do
within '.repetition .row:first-child' do
fill_in('sub type de champ', with: 'un autre texte')
end
@ -124,7 +124,7 @@ describe 'The user' do
expect(page).to have_content('Supprimer', count: 2)
within '.row-1' do
within '.repetition .row:first-child' do
click_on 'Supprimer lélément'
end