Open
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
8
Node.js Version
20.18.01
Mode
Standalone Mode
Which capabilities are you using?
"visual",
{
baselineFolder: path.join(process.cwd(), "visual-comparisons", "baseline"),
formatImageName: "{tag}-{width}x{height}",
screenshotPath: path.join(process.cwd(), "visual-comparisons"),
savePerInstance: true,
autoSaveBaseline: true ,
clearRuntimeFolder: true,
createJsonReportFiles: true,
}
What happened?
Setting clearRuntimeFolder to true clears the folder after each feature execution, resulting in a visual report being generated only for the last feature.
What is your expected behavior?
It should clear only at start on each execution
How to reproduce the bug.
Pre-requisite: set up for Visual reporting
set clearRuntimeFolder: true,
Step To reproduce
Step 1: Create 2 spec file and add one test case in each spec file
Step 2: Execute 2 spec at a time
Step 3: check for output.json file, only second spec visual data is present.
Relevant log output
Not needed
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Metadata
Metadata
Assignees
Labels
No labels