It would be nice to have markCheckAsDegraded take an option boolean that will exit when called. My use case is that we have a two step check where the first step verifies logging into our platform. If the main login system is down we want to mark the check as degraded and stop execution as the second step checks a specific app in our platform. If the first step fails the second will too, but we don’t want to fail the check because the login system being down is owned by another team, so we’d like to not be alerted for something outside of our team.
A workaround is to have the login check function return a boolean that we guard the second check by, or we can wrap a second test.step in a if (!test.info().errors.length) check, but it would be an easier control flow if markCheckAsDegraded could directly exit the test.
Please authenticate to join the conversation.
In Review
💡 Feature Request
Over 1 year ago

Duval Kilpatrick
Get notified by email when there are changes.
In Review
💡 Feature Request
Over 1 year ago

Duval Kilpatrick
Get notified by email when there are changes.