Skip to content

Commit f922241

Browse files
committed
support folder change
1 parent dfa60aa commit f922241

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,6 @@ afterEach(() => {
347347
const attributes = Cypress.mocha.getRunner().suite.ctx.currentTest;
348348
cy.window().then(async (win) => {
349349

350-
try {
351-
throw new Error('Deliberate exception thrown for testing purposes2');
352-
} catch (error) {
353-
if (error && error.stack) {
354-
browserStackLog(error.stack);
355-
}
356-
}
357350
let shouldScanTestForAccessibility = shouldScanForAccessibility(attributes);
358351
if (!shouldScanTestForAccessibility) return cy.wrap({});
359352

bin/accessibility-automation/helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
237237
if(err) return logger.debug('EXCEPTION IN BUILD START EVENT : Unable to parse cypress support files');
238238
files.forEach(file => {
239239
try {
240-
if(!file.includes('commands.js') && !file.includes('commands.ts')) {
240+
const fileName = path.basename(file);
241+
if((fileName === 'e2e.js' || fileName === 'e2e.ts')) {
241242
const defaultFileContent = fs.readFileSync(file, {encoding: 'utf-8'});
242243

243244
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener(path.extname(file));

0 commit comments

Comments
 (0)