Skip to content

'Warning: We failed capturing this video' error when tests are very short duration (2 secs or less) or skipped #27898

Closed
@ryanthemanuel

Description

@ryanthemanuel

Current behavior

When video is enabled and all tests on a spec are skipped, we get the following error in standard output:

Warning: We failed capturing this video.

This error will not affect or change the exit code.

TimeoutError: operation timed out
    at afterTimeout (/Users/ryanm/Library/Caches/Cypress/13.2.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/timers.js:46:19)
    at Timeout.timeoutTimeout [as _onTimeout] (/Users/ryanm/Library/Caches/Cypress/13.2.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/timers.js:76:13)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions