Revert "feat(champ): customizable placeholders for text & textarea champs"
This reverts commit 9e26ee932e
.
Finalement les champs génériques ne doivent pas avoir de placeholder
personnalisable, ce sera uniquement via la description.
This commit is contained in:
parent
08611753d5
commit
8c08d0295b
9 changed files with 3 additions and 80 deletions
|
@ -34,24 +34,6 @@ describe 'shared/dossiers/edit.html.haml', type: :view do
|
|||
expect(subject).to have_css('input[type="tel"][placeholder^="0612"]')
|
||||
end
|
||||
end
|
||||
|
||||
context "with generic champs" do
|
||||
let(:champ_text) { create(:champ_text, dossier: dossier) }
|
||||
let(:champs) { [champ_text, champ_textarea] }
|
||||
|
||||
it "renders default placeholders" do
|
||||
expect(subject).to have_css('input[placeholder*="réponse"]')
|
||||
expect(subject).to have_css('textarea[placeholder*="réponse"]')
|
||||
end
|
||||
|
||||
it "renders customized placeholders" do
|
||||
champ_text.type_de_champ.placeholder = "custom1 placeholder"
|
||||
champ_textarea.type_de_champ.placeholder = "custom2 placeholder"
|
||||
|
||||
expect(subject).to have_css('input[placeholder*="custom1"]')
|
||||
expect(subject).to have_css('textarea[placeholder*="custom2"]')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with a single-value list' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue