-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[try] Record failed e2e tests as artifacts #26959
Conversation
format: 'png', | ||
everyNthFrame: 1, | ||
} ); | ||
session.on( 'Page.screencastFrame', ( event ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to register a new listener for every started test? do they get cleared on stopScreencast
?
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
I believe cypress supports this out of the box. Not sure if it uses puppeteer though, might need to further investigate. |
Just noting that we used to use Cypress but moved away from it, see #5618. |
Now that we have Playwright, achieving this goal should be easier. I'm closing this PR. |
This is an exploratory PR to record mp4 videos of failed e2e tests, inspired by this comment by @noahtallen:
#26664 (review)
It captures png screenshots using chrome devtools protocol, stores them on disk, and uses ffmpeg to encode an mp4 video.
Concerns:
ffmpeg
?cc @noahtallen @noisysocks @talldan @gziolo @draganescu