Log out through the site, the way its user menu does, and wait until the session is a visitor's.
Examples
When I log out
When we log out
And I log out
Then I log out
When log out
Pattern
When(/^(I |we )*log out$/, …)
Part of @webship-js/openproject-steps (github.com/webship/openproject-steps), a step pack for Webship-js 2.0.x.