chore(attachment): increase poll antivirus timeout and make it clear it's not blocker

This commit is contained in:
Colin Darie 2022-12-07 18:36:03 +01:00
parent 169d701a03
commit 7719ce1865
10 changed files with 55 additions and 9 deletions

View file

@ -56,4 +56,18 @@ RSpec.describe Attachment::PendingPollComponent, type: :component do
end
end
end
context "when it's a dossier context" do
before do
attachment.created_at = 5.minutes.ago
end
let(:component) {
described_class.new(poll_url: "poll-here", attachment:, context: :dossier)
}
it "indicates it's not blocker to submit" do
expect(subject).to have_content("déposer votre dossier")
end
end
end