Set context to matched textComponent.

* Makes #textComponent flag the object to the matched text component.
Add #triggerEvent helper.

* Combined with the component assertions, this adds a helper so you can
easily trigger an event on a found component. See tests for an example.