diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb index dbe789e9a..29a72b5fd 100644 --- a/app/views/proposals/_form.html.erb +++ b/app/views/proposals/_form.html.erb @@ -5,7 +5,6 @@ <%= render "shared/errors", resource: @proposal %>
- <%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :title, @@ -13,10 +12,10 @@ placeholder: t("proposals.form.proposal_title"), label: t("proposals.form.proposal_title"), data: { js_suggest_result: "js_suggest_result", - js_suggest: "#js-suggest", + js_suggest: ".js-suggest", js_url: suggest_proposals_path } %>
-
+
<%= translations_form.label :summary %> diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index a101430ad..0b2e6f4d1 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -1727,7 +1727,7 @@ describe "Proposals" do fill_in "Proposal title", with: "search" check "proposal_terms_of_service" - within("div#js-suggest") do + within("div.js-suggest") do expect(page).to have_content "You are seeing 5 of 6 proposals containing the term 'search'" end end @@ -1743,7 +1743,7 @@ describe "Proposals" do fill_in "Proposal title", with: "debate" check "proposal_terms_of_service" - within("div#js-suggest") do + within("div.js-suggest") do expect(page).not_to have_content "You are seeing" end end