File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
bin/accessibility-automation Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -250,20 +250,28 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
250250 files . forEach ( file => {
251251 try {
252252 const fileName = path . basename ( file ) ;
253- if ( ( file . includes ( 'e2e.js' ) || file . includes ( 'e2e.ts' ) || file . includes ( 'component.ts' ) || file . includes ( 'component.js' ) ) ) {
253+ console . log ( `fileName: ${ fileName } ` ) ;
254+ browserStackLog ( `bstack-${ fileName } ` ) ;
255+ if ( ( fileName === 'e2e.js' || fileName === 'e2e.ts' || fileName === 'component.ts' || fileName === 'component.js' ) ) {
254256 console . log ( `Adding accessibility event listeners to ${ file } ` ) ;
255257 browserStackLog ( `Adding accessibility event listeners to ${ file } ` ) ;
256258 const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
257-
259+ console . log ( `log1` ) ;
260+ browserStackLog ( `bstack-log1` ) ;
258261 let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
262+ console . log ( `log2` ) ;
263+ browserStackLog ( `bstack-log2` ) ;
259264 if ( ! defaultFileContent . includes ( cypressCommandEventListener ) ) {
260265 let newFileContent = defaultFileContent +
261266 '\n' +
262267 cypressCommandEventListener +
263268 '\n'
264269 fs . writeFileSync ( file , newFileContent , { encoding : 'utf-8' } ) ;
270+ console . log ( `log3` ) ;
271+ browserStackLog ( `bstack-log3` ) ;
265272 supportFileContentMap [ file ] = supportFilesData . cleanupParams ? supportFilesData . cleanupParams : defaultFileContent ;
266273 }
274+ browserStackLog ( `>>> completed ${ fileName } ` ) ;
267275 console . log ( `>>> completed ${ fileName } ` ) ;
268276 }
269277 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments