File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
bin/accessibility-automation Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
235
235
if ( ! supportFilesData . supportFile ) return ;
236
236
const isPattern = glob . hasMagic ( supportFilesData . supportFile ) ;
237
237
if ( ! isPattern ) {
238
- console . debug ( `Inside isPattern` ) ;
238
+ console . log ( `Inside isPattern` ) ;
239
239
logger . debug ( `Inside isPattern` ) ;
240
240
const defaultFileContent = fs . readFileSync ( supportFilesData . supportFile , { encoding : 'utf-8' } ) ;
241
241
@@ -255,10 +255,10 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
255
255
files . forEach ( file => {
256
256
try {
257
257
const fileName = path . basename ( file ) ;
258
- console . debug ( `Adding accessibility event listeners to ${ fileName } ` ) ;
259
- logger . debug ( `Adding accessibility event listeners to ${ fileName } ` ) ;
258
+ console . log ( `Adding accessibility event listeners to ${ fileName } ` ) ;
259
+ logger . debug ( `Adding accessibility event listeners to ${ fileName } ` ) ;
260
260
if ( ( fileName === 'e2e.js' || fileName === 'e2e.ts' || fileName === 'component.ts' || fileName === 'component.js' ) ) {
261
- console . debug ( `Adding accessibility event listeners to ${ file } ` ) ;
261
+ console . log ( `Adding accessibility event listeners to ${ file } ` ) ;
262
262
logger . debug ( `Adding accessibility event listeners to ${ file } ` ) ;
263
263
const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
264
264
Original file line number Diff line number Diff line change @@ -4,13 +4,7 @@ const utils = require('../../helpers/utils');
4
4
const fs = require ( 'fs' ) ;
5
5
6
6
const browserstackAccessibility = ( on , config ) => {
7
- // const logFilePath = path.join(__dirname, 'accessibility-start-log.txt');
8
- // const logMessage = `afterEach executed for test`
9
- // try {
10
- // fs.appendFileSync(logFilePath, logMessage);
11
- // } catch (err) {
12
- // // ignore logging errors
13
- // }
7
+
14
8
let browser_validation = true ;
15
9
if ( process . env . BROWSERSTACK_ACCESSIBILITY_DEBUG === 'true' ) {
16
10
config . env . BROWSERSTACK_LOGS = 'true' ;
You can’t perform that action at this time.
0 commit comments