Make the browser a visitor: its cookies are dropped (the sessions on the server live on for a later scenario), then the site's front page opens, which sends a visitor to the login page.
Then I should be on the login page
Then I should not be logged in
Examples
Given I am not logged in
Given we are not logged in
When I am not logged in
Given I am not logged in
Given I am not logged in
Pattern
Given(/^(?:I am|we are) not logged in$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.