Merge pull request #9421 from mfo/US/fix-flackytypes_de_champ_spec-l199
tech(test.flacky): essaie de rendre plus fiable le test system/administrateurs/types_de_champ_spec.rb ligne 199
This commit is contained in:
commit
78a0abb589
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,7 @@ describe 'As an administrateur I can edit types de champ', js: true do
|
||||||
scenario 'invalid order, it pops up errors summary' do
|
scenario 'invalid order, it pops up errors summary' do
|
||||||
add_champ
|
add_champ
|
||||||
select('Titre de section', from: 'Type de 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
|
first_header = procedure.active_revision.types_de_champ_public.first
|
||||||
select('Titre de niveau 1', from: dom_id(first_header, :header_section_level))
|
select('Titre de niveau 1', from: dom_id(first_header, :header_section_level))
|
||||||
|
|
||||||
|
@ -206,6 +207,7 @@ describe 'As an administrateur I can edit types de champ', js: true do
|
||||||
wait_until { procedure.reload.active_revision.types_de_champ_public.count == 2 }
|
wait_until { procedure.reload.active_revision.types_de_champ_public.count == 2 }
|
||||||
second_header = procedure.active_revision.types_de_champ_public.last
|
second_header = procedure.active_revision.types_de_champ_public.last
|
||||||
select('Titre de section', from: dom_id(second_header, :type_champ))
|
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))
|
select('Titre de niveau 2', from: dom_id(second_header, :header_section_level))
|
||||||
|
|
||||||
within(".types-de-champ-block li:first-child") do
|
within(".types-de-champ-block li:first-child") do
|
||||||
|
|
Loading…
Reference in a new issue