Skip to content

Commit 532d703

Browse files
committed
changes added
1 parent 6d08175 commit 532d703

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/accessibility-automation/helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
227227
if(!isPattern) {
228228
console.log(`Inside isPattern`);
229229
try {
230+
file = supportFilesData.supportFile;
230231
const defaultFileContent = fs.readFileSync(file, {encoding: 'utf-8'});
231232
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener(path.extname(file));
232233
const alreadyIncludes = defaultFileContent.includes(cypressCommandEventListener);
@@ -235,6 +236,7 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
235236
'\n' +
236237
cypressCommandEventListener +
237238
'\n';
239+
console.log(`New file content for ${file}: ${newFileContent}`);
238240
fs.writeFileSync(file, newFileContent, {encoding: 'utf-8'});
239241
supportFileContentMap[file] = supportFilesData.cleanupParams ? supportFilesData.cleanupParams : defaultFileContent;
240242
}

0 commit comments

Comments
 (0)