code: function getAllByLabelText(container, text, ...rest) {
    const els = queryAllByLabelText(container, text, ...rest)
    if (!els.length) {
      const labels = queryAllLabelsByText(container, text, ...rest)
      if (labels.length) {
        throw getElementError(
          `Found a label with the text of: ${text}, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,
          container,
        )
      } else {
        throw getElementError(
          `Unable to find a label with the text of: ${text}`,
          container,
        )
      }
    }
    return els
  }
docs: the getAll* query would normally look like this: const getAllByLabelText = makeGetAllQuery( queryAllByLabelText, (c, text) => `Unable to find a label with the text of: ${text}`, ) however, we can give a more helpful error message than the generic one, so we're writing this one out by hand.