Skip to content

← All questions

What is the accepted way to delete the records a scenario created?

Asked 8,340 views3 answers

Our regression suite has left about nine hundred posts behind in the sandbox and the list endpoint is getting slow. Right now the deletes are in an after-hook in our own step file, which works for the happy path and does nothing when the scenario fails halfway — which is exactly when there is a half-created record to clean.

Is there a first-class way to do this, or is a hook the answer and I should write a better one?

asked by Thom Vasseur5,470 ·

3 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related