After hooks
A Heal after hook is a block that will run at the end of the test execution, whether the test execution passed or crashed. We refer to them as afterEach blocks.
You can call an after hook in the code editor with the syntax await Heal.afterEach.<hook-name>(<parameters>). From there, you can edit the afterEach block like any other block.
Here is an example story with an afterEach call
const userEmail = `tester@heal.dev`
await Heal.leftClick('the Learn More link');
await Heal.leftClick('the Domains link in the top menu bar');
await Heal.afterEach.afterEachBlock(userEmail);
We currently only support after hooks in the form of blocks.
afterEach call must be the last step of the story, and we allow only one at the moment.