Updated Testing and Rspec Tips (markdown)

ashishp91
2025-04-15 19:07:01 +05:30
parent e1086a248c
commit 55e409abbc

@@ -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>