fixes flaky spec

Adds random number to the proposal’s title, to avoid js popup
displaying similar proposals
This commit is contained in:
rgarcia
2017-09-15 16:08:33 +02:00
committed by Bertocq
parent 6de47e7f1d
commit 882723a58a

View File

@@ -248,7 +248,7 @@ def attach_new_file(documentable_factory_name, index, path)
end end
def fill_new_valid_proposal def fill_new_valid_proposal
fill_in :proposal_title, with: "Proposal title" fill_in :proposal_title, with: "Proposal title #{rand(9999)}"
fill_in :proposal_summary, with: "Proposal summary" fill_in :proposal_summary, with: "Proposal summary"
fill_in :proposal_question, with: "Proposal question?" fill_in :proposal_question, with: "Proposal question?"
check :proposal_terms_of_service check :proposal_terms_of_service