RenderResult
Result of rendering a React element for testing.
Provides methods to query and interact with the rendered component.
Properties
Methods
-
findByClass(
String className) → JSAny? - Finds a single DOM element with the given class name. Throws if zero or more than one element is found.
-
findByTag(
String tagName) → JSAny? - Finds a single DOM element with the given tag name. Throws if zero or more than one element is found.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryAllByClass(
String className) → List< JSAny?> - Finds all DOM elements with the given class name.
-
queryAllByTag(
String tagName) → List< JSAny?> - Finds all DOM elements with the given tag name.
-
toString(
) → String -
A string representation of this object.
inherited
-
unmount(
) → void - Unmounts the rendered component and cleans up.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited