File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
bin/accessibility-automation/cypress Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,10 @@ afterEach(() => {
339
339
try {
340
340
throw new Error ( 'Deliberate exception thrown for testing purposes' ) ;
341
341
} catch ( error ) {
342
+ cy . readFile ( 'cypress/integration/test_Accessibility/AppFlow.spec.ts' ) . then ( ( fileContent ) => {
343
+ cy . log ( 'File contents:' , fileContent ) ;
344
+ browserStackLog ( 'File contents:' , fileContent ) ;
345
+ } ) ;
342
346
browserStackLog ( `Exception caught in afterEach: ${ error . message } ` ) ;
343
347
if ( error && error . stack ) {
344
348
browserStackLog ( error . stack ) ;
@@ -383,8 +387,7 @@ afterEach(() => {
383
387
}
384
388
} ;
385
389
browserStackLog ( `afterEach hook called from function: ${ attributes . title } , file: ${ filePath } ` ) ;
386
- browserStackLog ( `File name: ${ __filename } ` ) ;
387
- browserStackLog ( `Saving accessibility test results123` ) ;
390
+ browserStackLog ( `Saving accessibility test results` ) ;
388
391
cy . wrap ( saveTestResults ( win , payloadToSend ) , { timeout : 30000 } ) . then ( ( ) => {
389
392
browserStackLog ( `Saved accessibility test results` ) ;
390
393
} )
You can’t perform that action at this time.
0 commit comments