testdouble / cypress-rails

Helps you write Cypress tests of your Rails app
Other
321 stars 48 forks source link

Requests Time Out After Changing Ruby Files #117

Closed d0liver closed 2 years ago

d0liver commented 2 years ago

Using bin/rake cypress:open, I'm able to connect with Cypress and run my tests successfully once. However, if I then change .rb files and rerun my tests in Cypress, all subsequent requests fail until I kill and restart Cypress/Rails. This makes debugging integration issues difficult.

searls commented 2 years ago

This isn't good! I have definitely seen this in some cases. I'm curious, could you please post a minimal reproduction repo? If it's hard to reproduce in a minimal case I think I'll need your help in debugging the root cause (I'd start looking around class caching, autoloading, spring, etc)

d0liver commented 2 years ago

Hey, sorry that I didn't get back to you sooner. The issue here was that the Cypress test cases were just timing out because Rails was taking a really long time to respond after restarts. Thanks for your help.