Assert that the browser shows the page that asks to confirm the logout ("Are you sure you want to log out?" on the generated page): a form that posts to the logout path.
Examples
Then I should be asked to confirm the logout
Then we should be asked to confirm the logout
And I should be asked to confirm the logout
Then I should be asked to confirm the logout
And we should be asked to confirm the logout
Pattern
Then(/^(I |we )*should be asked to confirm the logout$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.