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) => {
250
250
files . forEach ( file => {
251
251
try {
252
252
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' ) ) {
254
256
console . log ( `Adding accessibility event listeners to ${ file } ` ) ;
255
257
browserStackLog ( `Adding accessibility event listeners to ${ file } ` ) ;
256
258
const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
257
-
259
+ console . log ( `log1` ) ;
260
+ browserStackLog ( `bstack-log1` ) ;
258
261
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
262
+ console . log ( `log2` ) ;
263
+ browserStackLog ( `bstack-log2` ) ;
259
264
if ( ! defaultFileContent . includes ( cypressCommandEventListener ) ) {
260
265
let newFileContent = defaultFileContent +
261
266
'\n' +
262
267
cypressCommandEventListener +
263
268
'\n'
264
269
fs . writeFileSync ( file , newFileContent , { encoding : 'utf-8' } ) ;
270
+ console . log ( `log3` ) ;
271
+ browserStackLog ( `bstack-log3` ) ;
265
272
supportFileContentMap [ file ] = supportFilesData . cleanupParams ? supportFilesData . cleanupParams : defaultFileContent ;
266
273
}
274
+ browserStackLog ( `>>> completed ${ fileName } ` ) ;
267
275
console . log ( `>>> completed ${ fileName } ` ) ;
268
276
}
269
277
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments