Merge pull request #861 from sgmap/fix-tests-that-fail-randomly

Link should exactly match dossier id, not on email like user1234@tps.fr
This commit is contained in:
LeSim 2017-10-17 11:29:21 +02:00 committed by GitHub
commit 2b88c1bfec

View file

@ -59,10 +59,10 @@ feature "procedure filters" do
expect(page).to have_content("#{type_de_champ.libelle} : #{champ.value}")
within ".dossiers-table" do
expect(page).to have_link(new_unfollow_dossier.id)
expect(page).to have_link(new_unfollow_dossier.id, exact: true)
expect(page).to have_link(new_unfollow_dossier.user.email)
expect(page).not_to have_link(new_unfollow_dossier_2.id)
expect(page).not_to have_link(new_unfollow_dossier_2.id, exact: true)
expect(page).not_to have_link(new_unfollow_dossier_2.user.email)
end