Skip to content

Commit

Permalink
fix: increase capy time
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru authored and maatinito committed Nov 30, 2024
1 parent c3e4212 commit 6f1c248
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/controllers/users/dossiers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/dossiers/messages/_form.html.haml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f1c248

Please sign in to comment.