Consider using `test-prof`'s `ActiveRecordSharedConnection` instead of DatabaseCleaner truncation/deletion strategy for feature tests that use `:js`
The following discussion from !27050 (merged) should be addressed:
-
@engwan started a discussion: (+1 comment) @rymai Can you review this change?
This best practice was brought to my attention recently and I ran into this problem.
I think we're also under-utilizing
rspec-set
. Maybe a reminder in the backend call or Slack would help?Also, Rails 5.1 brings system specs which are basically feature specs now with js transaction support. We could use this after the upgrade and could speed up our tests a bit.
Edited by Rémy Coutable