This application exists to help diagnose a potential bug in cypress-rails 0.8.0.rc1
.
First, you'll need Ruby and Node. This app calls for 3.3.5 and 22.9.0 but anything close to that should work. You'll also need PostgreSQL running locally. If your local install of Postgres requires a password to log in, you'll want to set a proper username and password in config/database.yml
.
- Install deps with
bundle
andnpm install
- Set up the database with
bin/rails db:test:prepare
- Run
bin/rails cypress:run
. The second test should fail, but it might take a few runs ofbin/rails cypress:run
. This test failure means that the database is not getting properly reset between tests. - Alternatively, you can run Cypress in interactive mode with
bin/rails cypress:open
so observe the issue with the database not getting reset between tests or runs of the test suite.