Hybrid child


  • Full report name: Multiple equally matching child snapshots
  • Status: WARN
  • Related to: component's child elements
  • Summary: an element could be one of several child elements and Warhol can't decide
  • How to fix: it's complicated

This error occurs when Warhol checks component children and is unable to identify of the elements in question. As a consequence Warhol is unable to verify the styles on the component child element and can only check for theme conformance.

When Warhol reads components from a pattern lib, it takes data snapshots of the component elements and of their children and other descendants as well. Mapping those child snapshots do elements is not easy, as they don't come with simple definitive selectors, like component snapshots do. Warhol has to apply heuristics to match each child elements to its snapshot and the heuristic of last resort is a brute force test run. In this, Warhol attempts to find the matching child snapshot by trying every child snapshot and picking the one that results in the smallest amount of errors. This error is the result of there being no single best matching snapshot.

In other words, something is wrong with a component child element that prevents Warhol from identifying its matching snapshot. To fix this error, you will have to manually figure out what's wrong with the element in question.

See also #