From cd0edd8d05a42bd9f44762462a6c2864710e89fb Mon Sep 17 00:00:00 2001 From: 07souravkunda Date: Thu, 4 Jan 2024 12:13:41 +0530 Subject: [PATCH 1/2] fix: a11y eventlistener --- bin/accessibility-automation/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/accessibility-automation/helper.js b/bin/accessibility-automation/helper.js index 7059bb0c..27ffd3d2 100644 --- a/bin/accessibility-automation/helper.js +++ b/bin/accessibility-automation/helper.js @@ -191,7 +191,7 @@ const getAccessibilityCypressCommandEventListener = () => { const setAccessibilityEventListeners = () => { try { const cypressCommandEventListener = getAccessibilityCypressCommandEventListener(); - glob(process.cwd() + '/cypress/support/*.js', {}, (err, files) => { + 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 { From a4c86ce0e96d97afca128048c655ae49820a1c57 Mon Sep 17 00:00:00 2001 From: 07souravkunda Date: Thu, 4 Jan 2024 12:19:48 +0530 Subject: [PATCH 2/2] chore: comment --- bin/accessibility-automation/helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/accessibility-automation/helper.js b/bin/accessibility-automation/helper.js index 27ffd3d2..4fd903d9 100644 --- a/bin/accessibility-automation/helper.js +++ b/bin/accessibility-automation/helper.js @@ -191,6 +191,8 @@ const getAccessibilityCypressCommandEventListener = () => { const setAccessibilityEventListeners = () => { try { const cypressCommandEventListener = getAccessibilityCypressCommandEventListener(); + + // 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 => {