test: fix flaky brouillon on repetition
This commit is contained in:
parent
7c8777557f
commit
2343ee83ef
2 changed files with 7 additions and 3 deletions
|
@ -128,13 +128,13 @@ describe 'The user' do
|
|||
expect(page).to have_field('sub type de champ', with: 'super texte')
|
||||
|
||||
click_on 'Ajouter un élément pour'
|
||||
expect(page).to have_content('Supprimer', count: 2)
|
||||
|
||||
within '.repetition .row:first-child' do
|
||||
fill_in('sub type de champ', with: 'un autre texte')
|
||||
blur
|
||||
end
|
||||
|
||||
expect(page).to have_content('Supprimer', count: 2)
|
||||
|
||||
expect do
|
||||
within '.repetition .row:first-child' do
|
||||
click_on 'Supprimer l’élément'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue