Follow-up from "Add `findBy*` and `findAllBy*` to `extendWrapper` Jest helper"

The following discussion from !54398 (merged) should be addressed:

  • @peterhegman started a discussion:

    VTU doesn't currently export ErrorWrapper so this is the only way we can create an ErrorWrapper. I opened an upstream PR to export ErrorWrapper but not sure when it will be reviewed/merged.

    Once ErrorWrapper is exported we can remove the emptyElement line and change this to:

    return new ErrorWrapper(text)

    I have tested locally with yarn link and all the specs pass without modification so we shouldn't have to make any changes to existing specs.

Once ErrorWrapper is exposed, presuming the upstream PR is accepted, let's make sure we remember to update this code segment.