feat(messages): re-enable simple autolink for instructeurs messages

Closes #9541
This commit is contained in:
Colin Darie 2023-11-06 19:01:25 +01:00
parent baaf4e3517
commit 21b6479ace
5 changed files with 68 additions and 7 deletions

View file

@ -97,6 +97,11 @@ RSpec.describe Dossiers::MessageComponent, type: :component do
it { is_expected.not_to have_selector("form[action=\"#{form_url}\"]") }
end
end
describe 'autolink simple urls' do
let(:commentaire) { create(:commentaire, instructeur: instructeur, body: "rdv sur https://demarches.gouv.fr") }
it { is_expected.to have_link("https://demarches.gouv.fr", href: "https://demarches.gouv.fr") }
end
end
describe '#commentaire_from_guest?' do