Skip to content

Commit 818e4f2

Browse files
Add note to testing docs about rendered_content helper (#1991)
* Add note to testing docs about `rendered_content` helper * Update docs/guide/testing.md * Update docs/guide/testing.md --------- Co-authored-by: Joel Hawksley <[email protected]>
1 parent 095e92e commit 818e4f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ end
2626

2727
_Note: `assert_selector` only matches on visible elements by default. To match on elements regardless of visibility, add `visible: false`. See the [Capybara documentation](https://rubydoc.info/github/jnicklas/capybara/Capybara/Node/Matchers) for more details._
2828

29+
For debugging purposes, the `rendered_content` test helper outputs the rendered HTML.
30+
2931
## Testing Slots
3032

3133
```ruby

0 commit comments

Comments
 (0)