1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/server
Juan Carlos Medina 009320d3bf Display pending requests (#2250)
* Backfill tests on pending requests behavior

* Implement parameterized wait time for wait_for_oending_requests

At some point, this might be worth being a top-level configuration.

* Re-implement counter mutex with a list of pending request envs

Set up for exposing more information to developers about pending requests.

* Expose pending requests in error message

This provides a bit more information to other developers about the state of their tests. Whether we include further information would require more feedback from other developers and how the community use the error message for debugging.

* Add safe fallback value to avoid passing `nil`

* Use a memory barrier on read operations for array

* Only store REQUEST_URI instead of env

* Revert back to fixed wait_time (60)

Keeping initial PR tidy and focused.

* Remove redundant attr reader

We already defined a getter for the value to ensure proper concurrent accessing.

* Ruby linter: single-line body for modifier if usage

* Ruby linter: single quotes
2019-10-07 17:26:48 -07:00
..
animation_disabler.rb Disable animations on pseudoelement content as well as regular elements 2019-06-19 13:14:04 +10:00
checker.rb Minor rubocop changes [ci skip] 2019-05-30 15:07:27 -07:00
middleware.rb Display pending requests (#2250) 2019-10-07 17:26:48 -07:00