Skip to content

Commit efdac13

Browse files
committed
Add enable_reloading to test.rb
1 parent 5956f5f commit efdac13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ If you are not using `factory_bot` look at `e2e/cypress/app_commands/factory_bot
117117

118118
Now you can create scenarios and commands that are plain Ruby files that get loaded through middleware, the ruby sky is your limit.
119119

120+
## If you want to use live reload from rails
121+
122+
Change the below setting in test.rb
123+
124+
```ruby
125+
config.enable_reloading = ENV['CYPRESS'].present?
126+
```
127+
120128
### WARNING
121129
*WARNING!!:* cypress-on-rails can execute arbitrary ruby code
122130
Please use with extra caution if starting your local server on 0.0.0.0 or running the gem on a hosted server

0 commit comments

Comments
 (0)