-
Notifications
You must be signed in to change notification settings - Fork 3.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
Allow video to be recorded till the end of the test #4804
Conversation
eek. I know this likely solves the issue, but...hardcoded 1 sec wait is kind of the opposite of Cypress philosophy. This will slow down user's runs, especially those that have 100+ spec files. Would rather isolate the cause and somehow hook into knowing when the reporter is done rendering to stop the video there. |
yeah, imperfect, but good enough for now to fix the immediate problem. The video recording will probably change how we capture and end the video. 1-second addition per spec is a fair price I feel. |
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.
We should only delay the end of the video if we are actually recording a video
@brian-mann in the file it checks if we are recording the video, if there is a better way
|
Def agree with your comments on making this much clearer |
…eral cleanup - simplify promise implementation in videoCapture.start - extract a few methods in runMode to handle conditional video capturing
Adds hardcoded delay of 1 second after the end of the test run before closing the browser if there is video recording going on. This allows the last frames to be added, creating the complete video.
DEBUG=cypress:server:video:frames
for Electron video frames, which should give more insight into video freezing in Cypress UI locks up during cypress run in CI (recognizable in video recording, the UI is less responsive and/or completely frozen) #4722Reviews
Trying something new
Before
the last frame of the video
After
Pre-merge Tasks