update spec for placeholder

This commit is contained in:
Christophe Robillard 2023-09-25 18:01:54 +02:00
parent abad463bb1
commit 08363546d5

View file

@ -30,9 +30,9 @@ describe 'shared/dossiers/edit', type: :view do
let(:champ_phone) { create(:champ_phone, dossier: dossier) } let(:champ_phone) { create(:champ_phone, dossier: dossier) }
let(:champs) { [champ_email, champ_phone] } let(:champs) { [champ_email, champ_phone] }
it "renders basic placeholders" do it "does not render basic placeholders" do
expect(subject).to have_css('input[type="email"][placeholder$="exemple.fr"]') expect(subject).not_to have_css('input[type="email"][placeholder$="exemple.fr"]')
expect(subject).to have_css('input[type="tel"][placeholder^="0612"]') expect(subject).not_to have_css('input[type="tel"][placeholder^="0612"]')
end end
end end
end end