Sorry for the late reply
I think you didn’t understand what i seem to have been questioning. But nevertheless we figured out a decent looking solution to it
Scenario('Retry until new status', { retries: 10 }, async ({ I }) => {
await PromiseTimeout(30000);
//do the assertions
});
//skip some test if last test fails
function PromiseTimeout(delayMs) {
return new Promise(function (resolve, reject) {
setTimeout(resolve, delayMs);
});
}