Skip to content

Commit

Permalink
Merge pull request demarches-simplifiees#9927 from mfo/fix-flacky-typ…
Browse files Browse the repository at this point in the history
…e-de-champ-template

fix(spec.flacky): ./spec/system/administrateurs/types_de_champ_spec.rb:272 was flacky, try to fix it
  • Loading branch information
mfo authored Jan 22, 2024
2 parents 716e4bb + 2fa5907 commit 15e0ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/system/administrateurs/types_de_champ_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@
fill_in 'Libellé du champ', with: 'renamed'
end
wait_until { initial_first_coordinate.reload.libelle == 'renamed' }
# wait until turbo response
expect(page).to have_text('Formulaire enregistré')
page.find(initial_first_coordinate_selector).click
expect(page).to have_css("#{initial_first_coordinate_selector} option", count: 3)
expect(page.find(initial_first_coordinate_selector).all("option").map(&:text)).to match_array(['0 renamed', '1 middle_tdc', '2 last_tdc'])
end

Expand Down

0 comments on commit 15e0ed8

Please sign in to comment.