Assert that the page a visitor asked for opens after the login: the app sent the browser to the login page instead of it, and the login brought the browser back to it (Spring Security marks it with ?continue).
Examples
Then I should be back on the page I asked for
Then we should be back on the page we asked for
And I should be back on the page I asked for
Then I should be back on the page I asked for
And we should be back on the page we asked for
Pattern
Then(/^(I |we )*should be back on the page (?:I|we) asked for$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.