testdouble/cypress-rails

Using cypress-rails with different backend/frontend repositories

Closed this issue · 1 comments

Hi! First of all, thanks for this gem, seems like a great solution to integrate Cypress with Rails. =)

In our codebase we use different repositories for the backend and the frontends. Is it possible to run cypress-rails in this scenario, where our Cypress tests are in the frontend but Rails runs on the backend? From what I've understood, everything needs to be in a single repository.

Thanks!

The gem doesn't know or care at all about git, so I imagine if you were to symlink your cypress folder from your front end project into the root of your rails app, it could work. But that would depend on the rails app being able to serve the front end assets which may not be possible depending on how you're set up.

In short if a rails test server can't serve your front end, this gem may not be of much use to you unless you build some glue to bridge the two together (you might actually achieve this with our static-rails gem for what it's worth)