api-boltAPIBolt

Cookies Assertions (Expect API)

Verify Set-Cookie boundaries directly from the generic expect() root sequence.

Available Matchers

toExistCookie(key)

Validates that a cookie with the specified name key was set during the response cycle.

ts

toBeCookie(key, exactValue)

Asserts the retrieved cookie value strictly equals the provided literal.

ts

toHaveLength(count)

Asserts the count of cookies received.

ts

Security Validations

Asserts security flags on the cookies.

ts

Looking for deep security audits of specific cookies like toHaveDomain()? Drop down to the Classic Cookies API which provides exhaustive attributes testing.