提交 77d636cc 编写于 作者: F Fatih Acet

Add debugging section to testing_guide/best_practices.md.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册