diff --git a/app/components/top_bar_component.html.erb b/app/components/top_bar_component.html.erb index 4e3bad5..f7e9e78 100644 --- a/app/components/top_bar_component.html.erb +++ b/app/components/top_bar_component.html.erb @@ -15,7 +15,7 @@
- <%= 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 %>
- <%= 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