Skip to content

Commit 1bd74d2

Browse files
committed
added more logging
1 parent 9214805 commit 1bd74d2

File tree

1 file changed

+5
-2
lines changed
  • bin/accessibility-automation/cypress

1 file changed

+5
-2
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ afterEach(() => {
339339
try {
340340
throw new Error('Deliberate exception thrown for testing purposes');
341341
} 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+
});
342346
browserStackLog(`Exception caught in afterEach: ${error.message}`);
343347
if (error && error.stack) {
344348
browserStackLog(error.stack);
@@ -383,8 +387,7 @@ afterEach(() => {
383387
}
384388
};
385389
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`);
388391
cy.wrap(saveTestResults(win, payloadToSend), {timeout: 30000}).then(() => {
389392
browserStackLog(`Saved accessibility test results`);
390393
})

0 commit comments

Comments
 (0)