Then the session cookie should be HttpOnly

Assert a flag of the session cookie (worldParameters.sessionCookie, the sign-in cookie) or of the anti-forgery cookie (.AspNetCore.Antiforgery.<id>), as the app set it: HttpOnly (out of reach of the page's scripts) or Secure (sent over HTTPS only).

Examples

Then the session cookie should be HttpOnly
Then the session cookie should be Secure
And the anti-forgery cookie should be HttpOnly
Then the anti-forgery cookie should not be Secure
And the session cookie should not be Secure

Pattern

Then(/^the (session|anti-forgery) cookie should( not)* be (HttpOnly|Secure)$/, …)

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