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(test runner): screenshot immediately after failure #15159

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Jun 27, 2022

Previously, screenshot was taken after hooks and fixtures teardown. However, hooks can easily modify the state of the page, and screenshot would not reflect the moment of failure.

Now screenshots are taken immediately after the test function finishes with an error.

Fixes #14854.

Previously, screenshot was taken after hooks and fixtures teardown.
However, hooks can easily modify the state of the page, and
screenshot would not reflect the moment of failure.

Instead, we take screenshots immediately after the test function
finishes with an error.
@dgozman dgozman force-pushed the screenshot-immediately-on-failure branch from bd88e5f to b674048 Compare June 28, 2022 00:05
@dgozman dgozman merged commit 79163e8 into microsoft:main Jun 28, 2022
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.

[Question] is there a way to take screenshots at the exact moment of the failure?
2 participants