- <RenderedReactElement> queried for [with all children] [with all wrapppers] [with all classes] [with all attributes] <ReactElement> <assertion?>
- <RenderedReactElement> queried for [exactly] <ReactElement> <assertion?>
This enables finding a particular component or element, to then perform further assertions on.
Here we're searching for a
div representing a todo item with the id 3. Because
props are checked with
to satisfy, extra data in this object is ignored.
You can use
to have rendered or
to contain with all the options as usual following a
It is also possible to extract the found component, by using the value of the returned promise from
If you want to find a target nested inside a parent element, use
queryTarget in the query.
queried for clause returns the
span inside the