Join GitHub today
Assertion Templates #218
The following has been addressed in the PR:
To solve the above problems, Assertion Templates allow the user to always assert against a full render, while allowing them to easily modify the assertion themselves per scenario.
The AssertionTemplate uses the existing selector api used elsewhere in harness, and supports an additional magic
The api for AssertionTemplate is very simple with the following api's:
AssertionTemplates are always immutable, setting a value will always result in a new AssertionTemplate being returned. This allows you to use assertions that build on top of other assertions.