Then the login should have started a new session

Assert that the login gave the browser a new session id (the protection against session fixation): the session cookie the browser held before the login form was sent is not the one it holds after it.

Examples

Then the login should have started a new session
And the login should have started a new session
Then the login should have started a new session
But the login should have started a new session
Then the login should have started a new session

Pattern

Then(/^the login should have started a new session$/, …)

Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.