You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the wrapped test node is not a direct child - but instead used within a functional child - the node is not accessible via the Assertion API for modification.
For example, consider this WrappedTestNode that is a functional child of SomeOtherWidget:
Fixed assertions will function as expected, but any assertions that modify the WrappedTestNode - such as baseAssertion.setChildren(WrappedTestNode, () => 'blah') - will fail with the following message: Error: Unable to find node.
Expected
Functional children of widgets within an assertion template are executed in such a way that they are accessible via the Assertion API.
The text was updated successfully, but these errors were encountered:
My fix for this only fixed the case where the function is a property on an object. Reopening since this is still broken for a functional child passed directly
Bug
In the documentation, wrapped test nodes are direct children in the assertion:
If the wrapped test node is not a direct child - but instead used within a functional child - the node is not accessible via the Assertion API for modification.
For example, consider this
WrappedTestNode
that is a functional child ofSomeOtherWidget
:Fixed assertions will function as expected, but any assertions that modify the
WrappedTestNode
- such asbaseAssertion.setChildren(WrappedTestNode, () => 'blah')
- will fail with the following message:Error: Unable to find node
.Expected
Functional children of widgets within an assertion template are executed in such a way that they are accessible via the Assertion API.
The text was updated successfully, but these errors were encountered: