-
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
Description
The cypress-rails gem provides a system of event hooks for loading and reloading test data. An example of these hooks is
CypressOnRails.hooks.before_server_start do
# Called once, before either the transaction or the server is started
end
We can add hooks similar to those provided by cypress-rails into the cypress-on-rails. They can be useful in certain situations, such as inserting data before the server starts/stops or reloading seeds after state reset using after_state_reset hook.