Skip to content

Commit f8a53c1

Browse files
authored
Reduce Feature Flapping (#1668)
The issue with feature specs failing appears to stem from not waiting long enough for the page to load after clicking a button. This ups from 2 seconds to 8 seconds of wait time. It will only make specs that fail take longs than nessisary practice and only by the 6 seconds. I ran 100 runs of the feature specs locally with 3, 5 and 8 seconds. I got about 50% failure with 3 seconds 1% failure with 5 seconds and 0% failure with 8 seconds. So here is hoping we can put the feature failure behind us.
1 parent 3c7b059 commit f8a53c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
ActiveRecord::Migration.maintain_test_schema!
6262

6363
# Uses faster rack_test driver when JavaScript support not needed
64+
Capybara.default_max_wait_time = 8
6465
Capybara.default_driver = :rack_test
6566

6667
if ENV['CHROME_HOSTNAME'].present?

0 commit comments

Comments
 (0)