- Add Rack 3.1 support #163
git
- Add a
CYPRESS_RAILS_CYPRESS_DIR
option for cases where the cypress tests live outside the CYPRESS_RAILS_DIR #159
- Fix a deprecation warning in Rails #157
- Update initializer task to generate valid Cypress v10+ configurations #156
- Add Puma 6 support #136
- Fix Rails 5 support #126
- Fix 2.5 & 2.6 compatibility #100
- Fixes a puma deprecation warning #95
- Sprinkles two instance variables to the custom transaction manager that cribs its implementation from ActiveRecord::TestFixtures (see f75f280) #88 #89
- Add support to Rails 6.1 (#52)
- Add backcompat for Ruby 2.4 (#47)
- Add a
CYPRESS_RAILS_HOST
option that allows a hostname to be specified (as opposed to 127.0.0.1). Puma will still bind to 127.0.0.1, but Cypress will use the hostname in itsbaseUrl
, which may be necessary for some folks' tests to work
- Add a
CYPRESS_RAILS_BASE_PATH
option which will be appended to theCYPRESS_BASE_URL
option that cypress-rails sets when launching cypress commands. Apps that setbaseUrl
to something other than "/" can set this env var to match for consistent behavior (or else set it using Cypress.config in a support file)
- If
RAILS_ENV
has been explicitly set when the CLI or rake task is run, respect that set value instead of overriding it to "test"
- Improve behavior of SIGINT (Ctrl-C) so a traceback isn't printed and stdout isn't flushed after the program exits
- Drop the hard deps on capybara and selenium-webdrivers (instead inlining portions of the Capybara server logic). Additionally, add a hard dep on puma since this gem is useless without it
- Fix the
before_server_stop
hook by rolling back transactions first so that it can clean out test data
- [Breaking] Remove
CypressRails::TestCase
. Userake cypress:run
instead - [Breaking] cypress-rails now starts a transaction immediately after
launching the server, which could result in other processes not being able
to observe your changes. To revert to the old behavior, set the env var
CYPRESS_RAILS_TRANSACTIONAL_SERVER=false
- Add configuration variables
CYPRESS_RAILS_DIR
,CYPRESS_RAILS_TRANSACTIONAL_SERVER
. Rename port and Cypress CLI forwarding toCYPRESS_RAILS_PORT
andCYPRESS_RAILS_CYPRESS_OPTS
- Add test data configuration hooks (to be run in an initializer):
CypressRails.hooks.before_server_start
CypressRails.hooks.after_transaction_start
CypressRails.hooks.after_state_reset
- after a transaction rollbackCypressRails.hooks.before_server_stop
- called in anat_exit
hook
- Started a changelog