Then the session cookie should be HttpOnly

Assert a flag of the session cookie (worldParameters.sessionCookie, JSESSIONID) or of the remember-me cookie (worldParameters.rememberMeCookie, remember-me), 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
And the session cookie should be Secure
Then the remember-me cookie should be HttpOnly
And the remember-me cookie should be Secure
Then the session cookie should not be Secure

Pattern

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

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