Skip to content

Add initialization hooks #153

Open
Open
@Seifeldin7

Description

@Seifeldin7

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions