Assert how long the session cookie keeps the browser signed in: a number of days (with "Remember me?" ticked the sign-in cookie lasts 14 days by default), give or take an hour, or only as long as the browser (no expiry).
Examples
Then the session cookie should last 14 days
Then the session cookie should end with the browser
And the session cookie should last 14 days
Then the session cookie should last 1 day
And the session cookie should end with the browser
Pattern
Then(/^the session cookie should (?:last (\d+) days?|end with the browser)$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.