Skip to content

added changes for RBFCU FIX #971

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

Merged
merged 4 commits into from
Mar 6, 2025
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bin/helpers/atsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const fs = require('fs');
const { consoleHolder } = require('../testObservability/helper/constants');
const HttpsProxyAgent = require('https-proxy-agent');

const { v4: uuidv4 } = require('uuid');
const axios = require('axios'),
logger = require('./logger').winstonLogger,
utils = require('./utils'),
Expand Down Expand Up @@ -108,7 +108,9 @@ exports.patchCypressConfigFileContent = (bsConfig) => {

let confPath = bsConfig.run_settings.cypress_config_file;
let patchedConfPathList = confPath.split(path.sep);
patchedConfPathList[patchedConfPathList.length - 1] = 'patched_ats_config_file.js'
const uniqueNamePatchFileName = `patched_ats_config_file_${uuidv4()}.js`;
patchedConfPathList[patchedConfPathList.length - 1] = uniqueNamePatchFileName;
logger.info("Patch file name is " + uniqueNamePatchFileName);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why adding this log line, it will be visible to user? Let's change it to debug if it's required for debugging.

const patchedConfPath = patchedConfPathList.join(path.sep);

bsConfig.run_settings.patched_cypress_config_file = patchedConfPath;
Expand Down