hasNoElement function

Matcher hasNoElement(
  1. String selector
)

Matches if rendered HTML does NOT contain any element matching selector.

expect(html, hasNoElement('.error'));
expect(html, hasNoElement('div.warning'));

Implementation

Matcher hasNoElement(String selector) => _HasNoElementMatcher(selector);