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(() => {
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
Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments