Skip to content

Commit

Permalink
Merge pull request #3129 from projectblacklight/remove-jquery-from-test
Browse files Browse the repository at this point in the history
Remove jQuery from test
  • Loading branch information
corylown authored Sep 18, 2024
2 parents da93d3f + 5948cf8 commit 539d806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/report_a_problem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
expect(find_by_id('contact_form_current_url', visible: false).value).to end_with spotlight.exhibit_solr_document_path(exhibit, id: 'dq287tq6352')
fill_in 'Your name', with: 'Some Body'
fill_in 'Your email', with: 'test@example.com'
page.evaluate_script("$('#contact_form_#{honeypot_field_name}').val('possible_spam@spam.com')")
page.evaluate_script("document.querySelector('#contact_form_#{honeypot_field_name}').value = 'possible_spam@spam.com'")
fill_in 'Message', with: 'This is my problem report'

expect do
Expand Down

0 comments on commit 539d806

Please sign in to comment.