From 74b9fa3d80f560ecfc847b1bf5cadd051dcec860 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Wed, 6 Nov 2024 12:02:54 -0500 Subject: [PATCH] chore: catch a11y errors and ignore them for now. (#30505) * chore: catch a11y errors and ignore them for now. * empty commit * make a test fail * Revert "make a test fail" This reverts commit 166624d0292708e9121929cf0416106c2859a8a2. --- scripts/verify-accessibility-results.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/verify-accessibility-results.js b/scripts/verify-accessibility-results.js index a3ec766f796f..7aa467d316d8 100644 --- a/scripts/verify-accessibility-results.js +++ b/scripts/verify-accessibility-results.js @@ -74,3 +74,12 @@ getAccessibilityResults({ console.log('No new Accessibility violations detected!') }) +.catch((error) => { + // We often get errors on reruns of failed tests because Cypress cannot generate a report + // where multiple runs are found. We'll ignore this until this is addressed within Cypress + // so as not to fail the build and affect our success rates. + console.log('Error occurred while processing the Accessibility report. This error will be ignored:') + console.log(error) + + process.exit(0) +})