diff --git a/app/controllers/users/dossiers_controller.rb b/app/controllers/users/dossiers_controller.rb index f2a4201289e..6143a09356a 100644 --- a/app/controllers/users/dossiers_controller.rb +++ b/app/controllers/users/dossiers_controller.rb @@ -375,7 +375,6 @@ def update @to_show, @to_hide, @to_update = champs_to_turbo_update(champs_public_attributes_params, dossier.champs.filter(&:public?)) render :update, layout: false end - format.html { redirect_to dossier_path(@dossier) } end end diff --git a/app/views/shared/dossiers/messages/_form.html.haml b/app/views/shared/dossiers/messages/_form.html.haml index d9e85b87d4b..bd0cfe98e6e 100644 --- a/app/views/shared/dossiers/messages/_form.html.haml +++ b/app/views/shared/dossiers/messages/_form.html.haml @@ -1,5 +1,5 @@ = render NestedForms::FormOwnerComponent.new -= form_for(commentaire, url: form_url, html: { multipart: local_assigns.has_key?(:dossier), data: { controller: 'persisted-form', persisted_form_key_value: dom_id(local_assigns.fetch(:dossier, local_assigns.fetch(:last_commentaire, current_user))), turbo: true } }) do |f| += form_for(commentaire, url: form_url, html: { multipart: local_assigns.has_key?(:dossier), data: { controller: 'persisted-form', persisted_form_key_value: dom_id(local_assigns.fetch(:dossier, local_assigns.fetch(:last_commentaire, current_user))) } }) do |f| - placeholder = t('views.shared.dossiers.messages.form.write_message_to_administration_placeholder') - if local_assigns.has_key?(:last_commentaire) = f.hidden_field :last_commentaire, value: last_commentaire.id, name: :id diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index de235c3515e..fdf0266b2db 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -55,7 +55,7 @@ def setup_driver(app, download_path, options) setup_driver(app, download_path, options) end -Capybara.default_max_wait_time = 10 +Capybara.default_max_wait_time = 30 Capybara.ignore_hidden_elements = false