-
Notifications
You must be signed in to change notification settings - Fork 3.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
'Warning: We failed capturing this video' error when tests are very short duration (2 secs or less) or skipped #27898
Comments
Facing the same issue with cypress 12.5.1. The video recording works fine with chrome but not with Firefox |
This comment was marked as off-topic.
This comment was marked as off-topic.
@karthivijay Please see the Firefox issue. This issue is only tracking the error on all browsers when all tests are skipped in a spec. |
I'm observing the same issue with electron and exactly same cypress version |
Just adding some insight here after some investigation. This can also be recreated by running a very short test as well as a spec where all tests are skipped (0 duration). it("test", () => {
expect(true).to.be.true
}); In this case, there are less frames being written to the video as shown below (only 1 frame written). Compared to a run without this error shown (3 frames written) When there are less than 2 frames written, these lines of code run: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/video_capture.ts#L135-L136 I would expect this would give a 3 sec timeout where more frames would be written then we can move on, but something isn't working at this point and causing the capture error. This error is occuring more often in v13 with Unfortunately hitting this capture error seems to take time in itself, so we have seen an increase in runtime when this error state is hit, which could cause tests to run slower. I saw this as a few seconds testing locally, but had seen this on another user's run as taking more than 30 seconds. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
When video is enabled and all tests on a spec are skipped, we get the following error in standard output:
Desired behavior
In 12, we actually captured a video with no real information in this scenario but it didn't fail.
Test code to reproduce
Any project really will work for this. Video needs to be enabled and a spec needs to have all tests skipped.
Cypress Version
13.2.0
Node version
v18.15.0
Operating System
macOS 13.4.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: