Fix debates suggest feature
This commit is contained in:
committed by
voodoorai2000
parent
51cda51155
commit
6a6080e6b7
@@ -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 } %>
|
||||
</div>
|
||||
<div id="js-suggest"></div>
|
||||
<div class="js-suggest" data-locale="<%= translations_form.locale %>"></div>
|
||||
|
||||
<div class="ckeditor small-12 column">
|
||||
<%= translations_form.cktext_area :description,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user