Skip to content

Commit 9beab9c

Browse files
committed
error trace
1 parent 7780635 commit 9beab9c

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ commandToOverwrite.forEach((command) => {
317317
});
318318

319319
afterEach(() => {
320+
try {
321+
throw new Error("Deliberate error for debugging purposes");
322+
} catch (err) {
323+
browserStackLog("Deliberate error caught:", err.stack);
324+
}
320325
const attributes = Cypress.mocha.getRunner().suite.ctx.currentTest;
321326
cy.window().then(async (win) => {
322327
let shouldScanTestForAccessibility = shouldScanForAccessibility(attributes);

0 commit comments

Comments
 (0)