Skip to content

Commit

Permalink
tech(test.flacky): essaie de rendre plus fiable un test flacky sur la…
Browse files Browse the repository at this point in the history
… configuration des champs d'un formulaire
  • Loading branch information
Martin authored and LeSim committed Aug 29, 2023
1 parent cd5d893 commit 7905a4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/system/administrateurs/types_de_champ_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,15 @@
scenario 'invalid order, it pops up errors summary' do
add_champ
select('Titre de section', from: 'Type de champ')
wait_until { procedure.reload.active_revision.types_de_champ_public.first&.type_champ == TypeDeChamp.type_champs.fetch(:header_section) }
first_header = procedure.active_revision.types_de_champ_public.first
select('Titre de niveau 1', from: dom_id(first_header, :header_section_level))

add_champ
wait_until { procedure.reload.active_revision.types_de_champ_public.count == 2 }
second_header = procedure.active_revision.types_de_champ_public.last
select('Titre de section', from: dom_id(second_header, :type_champ))
wait_until { procedure.reload.active_revision.types_de_champ_public.last&.type_champ == TypeDeChamp.type_champs.fetch(:header_section) }
select('Titre de niveau 2', from: dom_id(second_header, :header_section_level))

within(".types-de-champ-block li:first-child") do
Expand Down

0 comments on commit 7905a4e

Please sign in to comment.