When view/api/new follows controller/api_controller spec it suffers from numerous order dependency failures. These specs pass individually or when view/api/new precedes api_controller's spec. The cause is currently unknown.
Discovered that VCR + Sidekiq interplay is likely the cause of the problem. The following steps have resulted in all specs passing under seed 29206.
Minimize VCR and Sidekiq usage.
When not possible to completely remove both, use VCR insert_cassette/eject_cassette in before(:all) > before(:each) blocks. This is believed to help as it keeps the cassette active before and throughout each individual spec.
Minimize side by side use of Selenium and VCR.
Selenium is known to interact poorly with VCR, this is due to the async nature of Selenium's JS tools.
When view/api/new follows controller/api_controller spec it suffers from numerous order dependency failures. These specs pass individually or when view/api/new precedes api_controller's spec. The cause is currently unknown.