diff --git a/app/views/debates/_form.html.erb b/app/views/debates/_form.html.erb index 666c73149..4ab110806 100644 --- a/app/views/debates/_form.html.erb +++ b/app/views/debates/_form.html.erb @@ -12,10 +12,10 @@ maxlength: Debate.title_max_length, placeholder: t("debates.form.debate_title"), data: { js_suggest_result: "js_suggest_result", - js_suggest: "#js-suggest", + js_suggest: ".js-suggest", js_url: suggest_debates_path } %> -
+
<%= translations_form.cktext_area :description, diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb index ed09e271c..cc73bdb4f 100644 --- a/spec/features/debates_spec.rb +++ b/spec/features/debates_spec.rb @@ -1116,7 +1116,7 @@ describe "Debates" do fill_in "Debate title", with: "debate" check "debate_terms_of_service" - within("div#js-suggest") do + within("div.js-suggest") do expect(page).to have_content "You are seeing 5 of 6 debates containing the term 'debate'" end end @@ -1132,7 +1132,7 @@ describe "Debates" do fill_in "Debate title", with: "proposal" check "debate_terms_of_service" - within("div#js-suggest") do + within("div.js-suggest") do expect(page).not_to have_content "You are seeing" end end