-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Experiment] Capture screencasts for failing tests #33506
Conversation
Size Change: -90 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
eab1f5b
to
e2af388
Compare
💯 thank you for exploring that @kevin940726 ! I wonder if it would be simpler to leverage this API instead: let displayMediaOptions = {video: true, audio: false};
navigator.mediaDevices.getDisplayMedia(displayMediaOptions)
.then(function(stream){
video_el.srcObject = stream;
}) Normally you have to click on a dialog window to confirm which window you want to capture, but I wonder if there's a way around that in puppeteer. This could potentially help: puppeteer/puppeteer#4835 |
I can see the video in the artifacts bundle, great job! One thing that's inconsistent is how short the video is (3s) |
Any details about this change? What was wrong previously? |
@youknowriad it's a new thing. We have a screenshot capture now, this adds a video capture. |
bd94797
to
ad48e50
Compare
That's a nice feature 👍🏻 I'm wondering how much does it impact the duration of individual tests when the screencast is recorded. For the screenshot you only take an action when the test fails, here you probably need to record every test and store it only when the test fails. |
96e2ccd
to
18624e7
Compare
123cb26
to
d625f16
Compare
0e8e1f2
to
085c4bf
Compare
Superseded by #38570. |
Description
Capture screencasts for failing tests.
How has this been tested?
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).