mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
Updated Testing and Rspec Tips (markdown)
@@ -53,9 +53,8 @@ As you make changes to the test code base, you are encouraged to convert the syn
|
||||
|
||||
It may be useful to see a real browser running the whole spec. You can also Debug things directly on the browser with this. This is how you can do it:
|
||||
|
||||
- open spec/spec_helper.rb
|
||||
- remove the word `headless`
|
||||
- done! you can add a "byebug" entry in your spec to get the test execution to stop at some point
|
||||
- Append `HEADLESS=false` to the rspec command.
|
||||
- Your rspec command should look like: `HEADLESS=false bundle exec rspec spec/system/admin/order_spec.rb:1023`
|
||||
|
||||
<h3>Viewing a screenshot</h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user