diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-10-12 21:29:32 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-10-12 21:29:32 +0000 |
commit | 77d636cc164eebeb119943f62b7ca1b837f878a8 (patch) | |
tree | 5ecb662652385817a528f811d81250535020c7c0 /doc/development | |
parent | 34fd07f64b4fc10196e461d2e65c6af52bb47015 (diff) | |
download | gitlab-ce-77d636cc164eebeb119943f62b7ca1b837f878a8.tar.gz |
Add debugging section to testing_guide/best_practices.md.
Diffstat (limited to 'doc/development')
-rw-r--r-- | doc/development/testing_guide/best_practices.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md index 613423dbd9a..b3ce2133161 100644 --- a/doc/development/testing_guide/best_practices.md +++ b/doc/development/testing_guide/best_practices.md @@ -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) |