diff --git a/bin/accessibility-automation/helper.js b/bin/accessibility-automation/helper.js index 7059bb0c..4fd903d9 100644 --- a/bin/accessibility-automation/helper.js +++ b/bin/accessibility-automation/helper.js @@ -191,7 +191,9 @@ const getAccessibilityCypressCommandEventListener = () => { const setAccessibilityEventListeners = () => { try { const cypressCommandEventListener = getAccessibilityCypressCommandEventListener(); - glob(process.cwd() + '/cypress/support/*.js', {}, (err, files) => { + + // Searching form command.js recursively + glob(process.cwd() + '/**/cypress/support/*.js', {}, (err, files) => { if(err) return logger.debug('EXCEPTION IN BUILD START EVENT : Unable to parse cypress support files'); files.forEach(file => { try {