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

Fix Error Catching and Screenshot Functionality #191

Merged
merged 25 commits into from
Aug 19, 2024
Merged

Conversation

sarinali
Copy link
Contributor

@sarinali sarinali commented Aug 16, 2024

Fixes code written to catch exceptions and failures in tests to screenshot the entire screen and what is captured by the driver. Also ensures that the INTERNAL ERROR does not show up anymore (before an exception was being raised due to failures, now it will simply log and error and move on.)

Note that on Linux CI: wayland machines prevent screenshotting (its a feature...) python-pillow/Pillow#6312 so screenshotting the entire screen is not possible on Linux CI without other libraries. Perhaps this is a come back to feature.

Additional work was done in GHA to ensure that headed tests run if the setup runs correctly and does not depend on the previous unheaded tests to pass anymore.

@sarinali sarinali changed the title TEST PR IGNORE Fix Aug 16, 2024
@sarinali sarinali changed the title Fix Fix Error Catching and Screenshot Functionality Aug 16, 2024
Copy link
Collaborator

@Tracy-Walker Tracy-Walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me. Full screen captured, whatever is there, not just the browser window. Leaving this for Ben's final approval.

ben-c-at-moz
ben-c-at-moz previously approved these changes Aug 19, 2024
Copy link
Collaborator

@ben-c-at-moz ben-c-at-moz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, using pillow was a good idea

@ben-c-at-moz ben-c-at-moz self-requested a review August 19, 2024 18:34
Copy link
Collaborator

@ben-c-at-moz ben-c-at-moz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, good addition to the tool

@sarinali sarinali merged commit f55c633 into main Aug 19, 2024
6 checks passed
@ben-c-at-moz ben-c-at-moz deleted the sl/screenshot-fix branch August 20, 2024 17:08
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.

3 participants