Sign out, the way the site does it (the person's menu, their name at the top right, then Log Out), and wait until the session is gone.
Examples
When I log out
When we log out
And I log out
And we log out
Then I log out
Pattern
When(/^(I |we )*log out$/, …)
Part of @webship-js/wekan-steps (github.com/webship/wekan-steps), a step pack for Webship-js 2.0.x.