diff --git a/spec/signing_form_helper.rb b/spec/signing_form_helper.rb index 13aadfc2..6d86484b 100644 --- a/spec/signing_form_helper.rb +++ b/spec/signing_form_helper.rb @@ -19,7 +19,7 @@ module SigningFormHelper ctx.lineTo(150, 150); ctx.stroke(); JS - sleep 1 + sleep 0.5 end def field_value(submitter, field_name) diff --git a/spec/system/setup_spec.rb b/spec/system/setup_spec.rb index 7c38aa17..25c6df27 100644 --- a/spec/system/setup_spec.rb +++ b/spec/system/setup_spec.rb @@ -32,7 +32,7 @@ RSpec.describe 'App Setup' do expect do click_button 'Submit' - sleep 2 + page.driver.wait_for_network_idle end.to change(Account, :count).by(1).and change(User, :count).by(1).and change(EncryptedConfig, :count).by(2) user = User.last