Go to the logout page (worldParameters.logoutPath, /logout). Spring Security answers a GET with a page that asks to confirm the logout; nothing ends until its button is pressed.
Examples
When I go to the logout page
When we go to the logout page
And I go to the logout page
When I go to the logout page
Given I go to the logout page
Pattern
When(/^(I |we )*go to the logout page$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.