style(champ): add placeholders for email, iban, phone, siret champs
Closes #7428
This commit is contained in:
parent
2d23215836
commit
9768f4e1c9
8 changed files with 38 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue