Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more information when screenshotting fails #276

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

elihart
Copy link
Contributor

@elihart elihart commented Oct 24, 2022

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

@elihart elihart merged commit f145a2c into master Oct 25, 2022
@elihart elihart deleted the eli-catch_screenshot_errors branch October 25, 2022 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants