Log out as a person does: the logout button of the page (a form that posts to the Logout account page, in the navigation of the app), else the one of the home page, else the button of the Logout page. The session cookie goes.
Examples
When I log out
When we log out
And I log out
Then I log out
When I log out
Pattern
When(/^(I |we )*log out$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.