style(champ): add placeholders for email, iban, phone, siret champs

Closes #7428
This commit is contained in:
Colin Darie 2022-07-04 18:37:30 +02:00
parent 2d23215836
commit 9768f4e1c9
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
8 changed files with 38 additions and 11 deletions

View file

@ -23,6 +23,17 @@ describe 'shared/dossiers/edit.html.haml', type: :view do
expect(subject).to have_field(champ_dossier_link.libelle, with: champ_dossier_link.value)
expect(subject).to have_field(champ_textarea.libelle, with: champ_textarea.value)
end
context "with standard champs" do
let(:champ_email) { create(:champ_email, dossier: dossier) }
let(:champ_phone) { create(:champ_phone, dossier: dossier) }
let(:champs) { [champ_email, champ_phone] }
it "renders basic placeholders" do
expect(subject).to have_css('input[type="email"][placeholder$="laposte.net"]')
expect(subject).to have_css('input[type="tel"][placeholder^="0612"]')
end
end
end
context 'with a single-value list' do