I'm new to Codeception and want to know how to work with roles?
I use Gherkin syntax like:
Given the user is logged in as "rootUser"
And in the steps class:
* Given /^the user is logged in as "([^"]*)"$/
public function theUserIsLoggedInAs1($role)
My rootUser class:
class RootUser extends Actor implements Context
How can I reuse my role with login functions on multiple tests? I tried searching but there is no good example somewhere.