Log out with the user menu (its "Log out" link), as a person does; the server ends the session and shows the login page. The session the run kept for the account is forgotten.
Then I should be on the login page
Then I should not be logged in
Examples
When I log out
When we log out
And I log out
When I log out
When I log out
Pattern
When(/^(?:I|we) log out$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.