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
parent 0de87c19c6
commit 3b76c7428b

View File

@@ -250,7 +250,7 @@ def attach_new_file(documentable_factory_name, index, path)
end
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_question, with: "Proposal question?"
check :proposal_terms_of_service