Chore: Initialize Cypress tests (#1078)
Addresses: #412 Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
9
config/initializers/cypress_on_rails.rb
Normal file
9
config/initializers/cypress_on_rails.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
if defined?(CypressOnRails)
|
||||
CypressOnRails.configure do |c|
|
||||
c.cypress_folder = File.expand_path("#{__dir__}/../../spec/cypress")
|
||||
# WARNING!! CypressOnRails can execute arbitrary ruby code
|
||||
# please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0
|
||||
c.use_middleware = Rails.env.test?
|
||||
c.logger = Rails.logger
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user