Rails-side state
Keep factories, fixtures, scenarios, and cleanup in Ruby where Rails teams can maintain them.
Cypress + Playwright on Rails
Use Cypress or Playwright with Rails scenarios, factories, fixtures, app commands, VCR, and clean test data.
Keep factories, fixtures, scenarios, and cleanup in Ruby where Rails teams can maintain them.
Use Cypress or Playwright without duplicating the Rails bridge that prepares app state.
Reset state and call explicit app commands so browser specs stay focused on user-visible behavior.