Skip to content

Commit

Permalink
Update .rb file, fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
inseo authored and mfo committed May 13, 2024
1 parent e4979bc commit b81c6db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/system/users/list_dossiers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,15 @@

it "can be filtered by procedure and display the result - one item" do
select dossier_en_construction.procedure.libelle, from: 'procedure_id'
click_on 'Afficher'
expect(page).to have_link(dossier_en_construction.procedure.libelle)
expect(page).not_to have_link(dossier_with_champs.procedure.libelle)
expect(page).to have_text("1 dossier")
end

it "can be filtered by procedure and display the result - no item" do
select dossier_brouillon.procedure.libelle, from: 'procedure_id'
click_on 'Afficher'
expect(page).not_to have_link(String(dossier_en_construction.id))
expect(page).not_to have_link(String(dossier_with_champs.id))
expect(page).to have_content("Résultat de la recherche pour « #{dossier_en_construction.champs_public.first.value} » et pour la procédure « #{dossier_brouillon.procedure.libelle} » ")
Expand All @@ -301,8 +303,9 @@
it "can filter by procedure" do
expect(page).to have_text('7 en cours')
expect(page).to have_text('3 traités')
expect(page).to have_select('procedure_id', selected: 'Toutes les démarches')
expect(page).to have_select('procedure_id', selected: 'Sélectionner une démarche')
select dossier_brouillon.procedure.libelle, from: 'procedure_id'
click_on 'Afficher'
expect(page).to have_text('1 en cours')
end
end
Expand Down

0 comments on commit b81c6db

Please sign in to comment.