Fix test intermittent introduit par #3479 | Merge pull request #3594 from betagouv/frederic/fix_test_intermittent

Fix test intermittent introduit par #3479
This commit is contained in:
Mathieu Magnin 2019-03-12 10:45:59 +01:00 committed by GitHub
commit 694cb21371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,20 +96,20 @@ feature "procedure filters" do
remove_filter(champ.value)
within ".dossiers-table" do
expect(page).not_to have_link(new_unfollow_dossier.id)
expect(page).not_to have_link(new_unfollow_dossier.id, exact: true)
expect(page).not_to have_link(new_unfollow_dossier.user.email)
expect(page).to have_link(new_unfollow_dossier_2.id)
expect(page).to have_link(new_unfollow_dossier_2.id, exact: true)
expect(page).to have_link(new_unfollow_dossier_2.user.email)
end
remove_filter(champ_2.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).to have_link(new_unfollow_dossier_2.id)
expect(page).to have_link(new_unfollow_dossier_2.id, exact: true)
expect(page).to have_link(new_unfollow_dossier_2.user.email)
end
end