Closed swt2public closed 6 years ago
Given a paper When a user visits the paper's edit page Then it should have a select box for the first author
Create a <label> for each <select> and set the for attribute of the label to the id of the select. For example
<label>
<select>
for
f.label "Author 1", for: "paper_author_id_1" f.collection_select :author_ids, authors, :id, :name, {selected: @paper.author_ids[1], include_blank: '(none)'}, {name: "paper[author_ids][]", id: "paper_author_id_1"}
See collection_select
Expected to find field "author 1" but there were no matches
Estimated progress: 92% complete
Scenario
Given a paper When a user visits the paper's edit page Then it should have a select box for the first author
Hints
Create a
<label>
for each<select>
and set thefor
attribute of the label to the id of the select. For exampleSee collection_select
Error
Estimated progress: 92% complete