I am trying to click a logout button after all the tests are finished for a fixture. Thus, I have put that logic to the after hook function of fixture. However, I got the following error:
Cannot implicitly resolve the test run in the context of which the test controller action should be executed. Use test function's 't' argument instead.
Afterwards, I tried to use the 't' directly inside the after hook, something like this:
fixture('my fixture').after(async (t) => t.click('.logout-button'));
But then I get the t.click is not a function error... So is the 't' not available to the after hook at all? What is the proper way to do what I want to achieve?