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) => {
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 }
You can’t perform that action at this time.
0 commit comments