Skip to content
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

[Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature or spec execution. #683

Open
3 tasks done
bisuvineel opened this issue Dec 13, 2024 · 0 comments

Comments

@bisuvineel
Copy link

Have you 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
@bisuvineel bisuvineel changed the title [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature execution. [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature| spec execution. Dec 13, 2024
@bisuvineel bisuvineel changed the title [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature| spec execution. [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature | spec execution. Dec 13, 2024
@bisuvineel bisuvineel changed the title [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature | spec execution. [Visual Testing] Setting clearRuntimeFolder to true clears the folder after each feature or spec execution. Dec 13, 2024
@christian-bromann christian-bromann transferred this issue from webdriverio/webdriverio Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant