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

fix: correctly define screenshotsDir option for browsers #1060

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented Feb 7, 2025

What is done

The screenshotsDir field is not parsed correctly for browsers if the user uses the deprecated value (hermione/screens) and the field itself is specified at the top level (i.e. not inside any browser).


if (!isSetByUser && fs.existsSync(deprecatedScreensPath) && !fs.existsSync(value)) {
return deprecatedScreensPath;
const topLevelScreenshotsDir = _.get(config, "screenshotsDir");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for top level option this will be undefined because option is not set. But when parse browser this option will have value from top level. And will be used if user not set it specially for browser

@DudaGod DudaGod force-pushed the TESTPLANE-447.fix_screenshotsDir branch from 5459724 to c59bbb1 Compare February 18, 2025 10:52
@DudaGod DudaGod merged commit abaa769 into master Feb 18, 2025
2 checks passed
@DudaGod DudaGod deleted the TESTPLANE-447.fix_screenshotsDir branch February 18, 2025 10:59
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

Successfully merging this pull request may close these issues.

3 participants