module Rails::Dom::Testing::Assertions::SelectorAssertions

Adds the assert_dom method for use in Rails functional test cases, which can be used to make assertions on the response HTML of a controller action. You can also call assert_dom within another assert_dom to make assertions on elements selected by the enclosing assertion.

Use css_select to select elements without making an assertions, either from the response HTML or elements selected by the enclosing assertion.

In addition to HTML responses, you can make the following assertions: