Skip to content

Commit

Permalink
fix: increase capy time
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru committed Oct 25, 2024
1 parent b27c5c7 commit fc38f26
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 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
4 changes: 2 additions & 2 deletions spec/system/users/brouillon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
select('02 – Aisne', from: form_id_for('departements'))

fill_in('communes', with: '60400')
using_wait_time 20 do
using_wait_time 30 do
find('li', text: 'Brétigny (60400)').click
end

Expand All @@ -47,7 +47,7 @@
select('98709 - Mahina - Tahiti', from: form_id_for('code_postal_de_polynesie'))

fill_in('address', with: '78 Rue du Grés 30310 Vergè')
using_wait_time 20 do
using_wait_time 30 do
find('li', text: '78 Rue du Grés 30310 Vergèze').click
end
wait_until { champ_for('address').full_address? }
Expand Down

0 comments on commit fc38f26

Please sign in to comment.