File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
bin/accessibility-automation/cypress Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ commandToOverwrite.forEach((command) => {
322
322
} ) ;
323
323
} ) ;
324
324
325
- const logFilePath = path . join ( __dirname , 'accessibility-log.txt' ) ;
325
+
326
326
afterEach ( ( ) => {
327
327
328
328
// const logMessage = `afterEach executed for test`
@@ -346,6 +346,14 @@ afterEach(() => {
346
346
347
347
const attributes = Cypress . mocha . getRunner ( ) . suite . ctx . currentTest ;
348
348
cy . window ( ) . then ( async ( win ) => {
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
+ }
349
357
let shouldScanTestForAccessibility = shouldScanForAccessibility ( attributes ) ;
350
358
if ( ! shouldScanTestForAccessibility ) return cy . wrap ( { } ) ;
351
359
You can’t perform that action at this time.
0 commit comments