When I log out

Log out the way a user does: the "Log Out" link of the admin bar, which carries the nonce WordPress asks for. Without an admin bar on the page it opens /wp-login.php?action=logout and confirms. It ends on the login screen with "You are now logged out."

Examples

When I log out
When we log out
And I sign out
When we sign out
And log out

Pattern

When(/^(I |we )*(?:log|sign) out$/, …)

Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.