[Cypress] Tests fail on reportAllureCypressSpecMessages
task during screenshots copying
#1133
Labels
reportAllureCypressSpecMessages
task during screenshots copying
#1133
Describe the bug
When using the
allure-cypress
with thecypress-plugin-snapshots
for visual regression tests, when a test fails on a screenshot comparison, then the after hook fails with an error:As
cypress-plugin-snapshots
stores visual regresion screenshots inside a foldere2e/spec_name
but theallure-cypress
plugin tries to copy all the screenshots taken during test run and assumes they all are saved insidescreenshots
folder, so it tries to copy screenshots from the path which is not correct.Is there any way to configure which screenshots should be copied and which not? Or any other way to avoid this problem and ignore the fail in after hook?
Currently the whole tests suite stops when this error occurs.
To Reproduce
Steps to reproduce the behavior:
cypress-plugin-snapshots
andallure-cypress
plugin in the repositoryExpected behavior
allure-cypress
plugin shouldn't try to copy attatchments from non existing paths or it should be possible to configure which attatchments should be copied to the report.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: