We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9beab9c commit 8dec92bCopy full SHA for 8dec92b
bin/accessibility-automation/cypress/index.js
@@ -318,9 +318,11 @@ commandToOverwrite.forEach((command) => {
318
319
afterEach(() => {
320
try {
321
- throw new Error("Deliberate error for debugging purposes");
322
- } catch (err) {
323
- browserStackLog("Deliberate error caught:", err.stack);
+ throw new Error('Deliberate exception thrown for testing purposes');
+ } catch (error) {
+ if (error && error.stack) {
324
+ browserStackLog(error.stack);
325
+ }
326
}
327
const attributes = Cypress.mocha.getRunner().suite.ctx.currentTest;
328
cy.window().then(async (win) => {
0 commit comments