Assert the SameSite value of the session cookie or of the anti-forgery cookie: Lax (sent when a person follows a link to the site, not with a form another site posts), Strict, or None.
Examples
Then the session cookie should be SameSite Lax
Then the anti-forgery cookie should be SameSite Strict
And the session cookie should be SameSite Lax
Then the anti-forgery cookie should be SameSite Strict
And the session cookie should be SameSite Strict
Pattern
Then(/^the (session|anti-forgery) cookie should be SameSite (Lax|Strict|None)$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.