fixes flaky spec
Adds random number to the proposal’s title, to avoid js popup displaying similar proposals
This commit is contained in:
@@ -248,7 +248,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
|
||||
|
||||
Reference in New Issue
Block a user