Open YJDoc2 opened 3 days ago
Not sure why semantic CI is failing, I have added changelog entry. I don't think this will make to the next release so might have to update it later.
btw, this PR is ready for review.
@YJDoc2
Not sure why semantic CI is failing, I have added changelog entry. I don't think this will make to the next release so might have to update it later.
The previous PR introduced an unwanted blank line 2 which is causing your failure.
The blank line should be removed.
Hey @MikeMcC399 , thanks for the help! I have fixed the changelog and pushed.
Additional details
Why was this change necessary?
Currently multiple runs of cypress in same dir (with trashAssetsBeforeRuns=false) will keep the screenshots files across runs, but will overwrite the video file. For more details, please check the issue discussion.
What is affected by this change?
The videos dir will now retain existing video files if trashAssetsBeforeRuns=false is set
Any implementation details to explain?
Nothing much, I have moved the getPath function used for generating screenshot paths into
fs.ts
fromscreenshot.js
and did some minor modifications to accommodate both screenshots and videos. There is one "hack" which I'm not sure how to fix, help appreciated :-compressed
suffix even if video compression is off.Steps to test
For current
develop
branch,spec1 -- testCase1 (failed).png
and other with namespec1 -- testCase1 (failed) (1).png
spec1.cy.js.mp4
For this branch,
spec1 -- testCase1 (failed).png
and other with namespec1 -- testCase1 (failed) (1).png
spec1.cy.js.mp4
andspec1.cy.js (1).mp4
How has the user experience changed?
They will keep the videos from previous runs if any.
PR Tasks
cypress-documentation
: This is a bug fix, I don't think this is applicable,type definitions
: I don't think this is applicable.