Proper way to test Update Handlers in workflows

I have a workflow that uses an UpdateHandler to add items to an in-workflow struct. I also have an UpdateHandler to close the workflow. I want to properly test these handlers but the documentation for testing does not cover testing updates.

I found TestWorkflowEnvironment.UpdateWorkflow which takes an UpdateCallbacks interface and arguments for the update but has no return value.
However UpdateWorkflowNoRejection exists described as a a convenience function that handles a common test scenario of only validating that an update isn't rejected. No other functions exist that make sure an update was successful (ran without errors).

I want to verify the Update executed successfully and that the handler ran without errors or if updates are meant to be tested in some other way.

Yeah for testing use UpdateWorkflowwith TestUpdateCallback (should be able to use a custom UpdateCallbacks impl too). Assert success in OnComplete.

Think that UpdateWorkflowNoRejectionuseful to prove update was not rejected by your validator.
For completion should use Complete(result, err)callback, check non-nil error to test handler failure.

testsuite.TestUpdateCallbacklifecycle from what can see is:
OnReject - validator failed
OnAccept - validator succeed (handler is called next)
OnComplete - handler finish and err report failure if any