Merge pull request #6903 from adullact/fix/6861-feature-test-emails

Les feature tests touchant aux emails échouent de manière aléatoire
This commit is contained in:
Paul Chavard 2022-02-08 11:52:28 +01:00 committed by GitHub
commit 5b147e6d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,10 @@ describe 'Inviting an expert:', js: true do
let(:dossier) { create(:dossier, :en_construction, :with_dossier_link, procedure: procedure) }
let(:linked_dossier) { Dossier.find_by(id: dossier.reload.champs.filter(&:dossier_link?).filter_map(&:value)) }
before do
clear_emails
end
context 'as an Instructeur' do
scenario 'I can invite an expert' do
allow(ClamavService).to receive(:safe_file?).and_return(true)