This is a very simple example on how to use the cypress-on-rails gem.
bundle install
yarn install
RAILS_ENV=test rails db:migrate
After setup run this command:
bundle exec cypress
This will open the cypress.io UI where you can run the included test.
The interesting files are in spec/cypress