Do not send alert if Synthetic fails certain step

Given a scenario, say if synthetic fails on the login step before it could run the other steps fun and sad time.

By normal behaviour it would send an alert as long as any steps failed, however the requirement would be.

If step login fails, the alert should not be triggered and the whole journey should retry again.

In this case would that be possible?

step('Go to website', async () => {
    await page.goto('');
 step('Login', async () => {
    await page.getByRole('button', { name: 'Login' }).click();
step('Fun Time', async () => {
    await page.getByRole('button', { name: 'Fun' }).click();
step('Sad Time', async () => {
    await page.getByRole('button', { name: 'Sad' }).click();

Hello, @linuschewpet
Might not be exactly what you are looking for , but this will help with your use case in 8.11 we added automatic retest on failure feature.

You can toggle it from ui or from project monitor via key

Hey @shahzad31,

Thanks for reply, actually its more related to the alerts.

Say that the "Login" step failed, it should retry and not trigger an alert.
However say if step "Fun Time" failed, it would trigger the alert.

I guess its a little closer to an if logic

if login fails = No alerts
else Trigger alert

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.