https://cypress.io logo
it seems that stuff from helper files, like vars, ...
# e2e-testing
w
it seems that stuff from helper files, like vars, are not regenerated when a retry occurs. Is there any way to do that?
I am using faker to generate some values in a separate helper file, which I then import in my test file
the issue I am facing is, the test i am running is creating a multi step item, and when it fails, part of what it was creating exists, so next time it uses the same id in the beginning, the partial entity from the first attempt is there so it skips a lot of steps, every time it retries after the first failure
I have thought of using the attempt number but since I am not already in a test, I can't chain off of cy.