Log out as a person does: "Log out" in the account menu at the foot of the sidebar (a form the admin sends with POST), then the login page with "You have been successfully logged out.". On a page that is not the admin's, 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/wagtail-steps (github.com/webship/wagtail-steps), a step pack for Webship-js 2.0.x.