File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
bin/accessibility-automation Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -347,13 +347,6 @@ afterEach(() => {
347
347
const attributes = Cypress . mocha . getRunner ( ) . suite . ctx . currentTest ;
348
348
cy . window ( ) . then ( async ( win ) => {
349
349
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
- }
357
350
let shouldScanTestForAccessibility = shouldScanForAccessibility ( attributes ) ;
358
351
if ( ! shouldScanTestForAccessibility ) return cy . wrap ( { } ) ;
359
352
Original file line number Diff line number Diff line change @@ -237,7 +237,8 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
237
237
if ( err ) return logger . debug ( 'EXCEPTION IN BUILD START EVENT : Unable to parse cypress support files' ) ;
238
238
files . forEach ( file => {
239
239
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' ) ) {
241
242
const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
242
243
243
244
let cypressCommandEventListener = getAccessibilityCypressCommandEventListener ( path . extname ( file ) ) ;
You can’t perform that action at this time.
0 commit comments