Commit 77d636cc authored by Fatih Acet's avatar Fatih Acet

Add debugging section to testing_guide/best_practices.md.

parent 34fd07f6
......@@ -267,6 +267,20 @@ RSpec.configure do |config|
end
```
### Debugging
If you need to debug Capybara tests, using the following lines,
you can get the current URL of Capybara server, logged in user email. Then you
can add some arbitrary sleep to halt the test and go check out the page.
Default user password is `12345678`.
```
puts current_url
puts user.email
sleep(200)
```
---
[Return to Testing documentation](index.md)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment