- <%= form_with url: feedback_path, method: :post, class: 'col-md-8' do |f| %>
+ <%= form_with url: feedback_path, method: :post, class: 'col-md-8', html: { name: 'feedback_form' } do |f| %>
<%= f.hidden_field :reporting_from, value: request.original_url %>
<%= t('feedbacks.reporting_from', url: request.original_url) %>
@@ -41,7 +41,17 @@
- <%= recaptcha_v3(action: 'feedback', turbolinks: true) %>
+ <%= recaptcha_v3(action: 'feedback') %>
+
diff --git a/spec/features/feedback_form_spec.rb b/spec/features/feedback_form_spec.rb
index dd3e3b8..abf3cc1 100644
--- a/spec/features/feedback_form_spec.rb
+++ b/spec/features/feedback_form_spec.rb
@@ -9,6 +9,6 @@
expect(page).to have_no_css('#feedback')
click_on 'Feedback'
- expect(page).to have_css('#feedback form')
+ expect(page).to have_css('#feedback form[name="feedback_form"]')
end
end