Fix proposals suggest feature

Now we need one suggest placeholder for each translation. This also
fixes invalid usage of id HTML attribute.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-12 14:23:00 +01:00
committed by voodoorai2000
parent bd3bb72370
commit 0f4fcfb20e
2 changed files with 4 additions and 5 deletions

View File

@@ -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