We had someone report a screenshot test failure where the error was only "Failed to capture a node to bitmap. Reason: Expected exactly '1' node but found '2' nodes that satisfy: (isRoot)". The test name was a generic "composable_screenshot_test_210" because of how they're generated, and it was impossible to see what component was causing this.
This change wraps each error thrown in a screenshotting implementation with details on the component being tested to help debug in these cases
We had someone report a screenshot test failure where the error was only "Failed to capture a node to bitmap. Reason: Expected exactly '1' node but found '2' nodes that satisfy: (isRoot)". The test name was a generic "composable_screenshot_test_210" because of how they're generated, and it was impossible to see what component was causing this.
This change wraps each error thrown in a screenshotting implementation with details on the component being tested to help debug in these cases