Skip to content

Commit

Permalink
Fixed label for value (#3912)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Laddusaw <rladdusaw@princeton.edu>
  • Loading branch information
rladdusaw and Ryan Laddusaw committed Jan 11, 2024
1 parent ee0196d commit d427c2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</td>
<td class='request--options' <%= 'colspan="2"'.html_safe unless table_sorter_present?(requestable_list) %>>
<fieldset class="form-group">
<label class="control-label <%= 'col-sm-6'.html_safe unless table_sorter_present?(requestable_list) %>" for="user_supplied_enum">
<label class="control-label <%= 'col-sm-6'.html_safe unless table_sorter_present?(requestable_list) %>" for="requestable_user_supplied_enum_<%= "#{requestable.holding.keys[0]}" %>">
If the specific volume does not appear in the list below, please enter it here:
</label>
<div class="col-sm-6">
Expand Down
2 changes: 2 additions & 0 deletions spec/features/requests/request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@
expect(page).to have_content 'If the specific volume does not appear in the list below, please enter it here:'
expect(page).to have_content 't. 2, no 2 (2018 )' # include enumeration and chron
expect(page).to have_content 't. 3, no 2 (2019 )' # include enumeration and chron
expect(page).to have_field('requestable_user_supplied_enum_22547424510006421')
expect(page).to have_selector('label[for=requestable_user_supplied_enum_22547424510006421]')
within(".user-supplied-input") do
check('requestable_selected')
end
Expand Down

0 comments on commit d427c2c

Please sign in to comment.