Skip to content

Commit

Permalink
Clear date input field in embargo edit spec (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnibbit committed Mar 4, 2021
1 parent 3fd009f commit 86116bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/system/embargo_edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
visit("/embargoes/#{etd.id}/edit")
expect(find('#etd_visibility_during_embargo').find(:xpath, 'option[1]').text).to eq 'All Restricted'
find('#etd_embargo_release_date')
fill_in 'etd_embargo_release_date', with: (Time.zone.today + 8.years).to_s
fill_in 'etd_embargo_release_date', with: (Time.zone.today + 8.years).to_s, fill_options: { clear: :backspace }
execute_script('$("form").submit()')
expect(page).to have_current_path("/concern/etds/#{etd.id}?locale=en")
expect(page).to have_content etd.title.first
Expand Down

0 comments on commit 86116bc

Please sign in to comment.