-
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
Video is not recorded #25964
Comments
Hi @Tatev777, I think you may have better luck if you modify the It is possible to configure at the test level like this: it('retries', { retries: 1 }, () => {
// your test code
}) Or you could do this in your Cypress config file where retries are configured. Let me know if this addresses your problem, I might be missing something. |
Hi @marktnoonan
|
Hi @Tatev777 . It sounds like you're describing our Auto Cancellation feature which is available on Business and Enterprise plans when running in CI. There is not currently an official way to perform your exact use case locally. Video post-processing occurs outside the spec execution events flow, so you would need to either put in hardcoded waits or use cross-test state to short-circuit the remaining tests in your suite after the first failure. The ability to cancel/skip the rest of a run on first failure has been discussed in-depth in a previous issue - the discussion in that issue may provide some guidance or insight to help find a solution for your specific use case. |
Current behavior
Previously, when my tests fell, immediately after the fall, Cyprus tried to re -run the current case. And after a second fall, Cyprus checked the next case. It took a lot of time, so I decide to stop the current test after the second fall.
I have added code below to e2e.js file, but after that if test fails then it's not visible in allure report. But in console I see that video is captured
Also while running locally I didn't get video of failure. It seems that there is not enough time(before cypress runner stop) for compressing video.
Desired behavior
How can I stop test after video is captured and compressed?
Test code to reproduce
Cypress Version
12.7.0
Node version
16.11.0
Operating System
MACOS 12.6
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: