The ComponentTester
exposes a set of properties that can be handy when doing asserts or to stage a component in a specific way. Here's a list of what is available :
* element
: The HTML element that gets rendered.
* viewModel
: The view-model for the component.
* configure
: The ComponentTester's configure method can be overwritten in order to set it up with custom configuration or get a reference to the container instance.
* dispose
: Cleans up the DOM after a test has run.
* bind
: Manually handles bind.
* unbind
: Manually handles unbind.
* attached
: Manually handles attached.
* detached
: Manually handles detached.
* waitForElement and waitForElements
: Waits until one or several elements are present / absent. See below.