File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
bin/accessibility-automation Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
227
227
if ( ! isPattern ) {
228
228
console . log ( `Inside isPattern` ) ;
229
229
try {
230
+ file = supportFilesData . supportFile ;
230
231
const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
231
232
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
232
233
const alreadyIncludes = defaultFileContent . includes ( cypressCommandEventListener ) ;
@@ -235,6 +236,7 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
235
236
'\n' +
236
237
cypressCommandEventListener +
237
238
'\n' ;
239
+ console . log ( `New file content for ${ file } : ${ newFileContent } ` ) ;
238
240
fs . writeFileSync ( file , newFileContent , { encoding : 'utf-8' } ) ;
239
241
supportFileContentMap [ file ] = supportFilesData . cleanupParams ? supportFilesData . cleanupParams : defaultFileContent ;
240
242
}
You can’t perform that action at this time.
0 commit comments