Log out as a person does: "Logout" in the profile menu at the top right; the site answers with its login page. On a page without that menu, the step opens the dashboard first.
Examples
When I log out
When we log out
And I log out
Then I log out
Given I log out
Pattern
When(/^(I |we )*log out$/, …)
Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.