- <%= 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) %>
@@ -40,7 +40,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 81a1f45a..fc0d1892 100644
--- a/spec/features/feedback_form_spec.rb
+++ b/spec/features/feedback_form_spec.rb
@@ -10,7 +10,7 @@
click_on 'Feedback'
within '#feedback' do
- expect(page).to have_css('form')
+ expect(page).to have_css('form[name="feedback_form"]')
end
end
end