Allure reporter makes it difficult to remove videos of successful tests and leave videos of unsuccessful tests. #96
-
The Cypress documentation has an example of updating the configuration file to remove videos of successful test runs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, @NikGorchichko To avoid this (to be able to register several |
Beta Was this translation helpful? Give feedback.
Hello, @NikGorchichko
The problem that you are using
after:spec
event for deleting videos.Because of this issue cypress-io/cypress#5240 only one event can be registered and I assume your event handler with deleting videos is being overridden by cypress-allure-adapter.
To avoid this (to be able to register several
after:spec
events) you can use workaround mentioned here:cypress-io/cypress#5240 (comment)
or here https://github.com/mmisty/cypress-allure-adapter/blob/main/README.pack.md#afterspec-event