background: I have an E2E task that it usually take 45 minutes, but sometimes the dev server fails to start (issue reported in Angular repo, no solution available yet and it seems few years old issue) and so the E2E fails after 2-3 minutes
what I want to do: make the E2E to retry using retryCountOnTaskFailure
but only if the dev server fail to start (which happens in the first 5 minutes) but if the real test failed not to retry
there are two conditions I can use either of them, but I don’t know how to add them to the azure.yml
file
- if the error contains
Error: Web server failed to start in 300000ms. This can be configured in cypress.config.ts.
- if the task failed before 5 minutes
my question how to write either one of these conditions