(response: Response, name: string)
| 24 | ); |
| 25 | |
| 26 | const setCookieFor = (response: Response, name: string): string => { |
| 27 | for (const header of response.headers.getSetCookie()) { |
| 28 | if (header.startsWith(`${name}=`)) return header; |
| 29 | } |
| 30 | return ""; |
| 31 | }; |
| 32 | |
| 33 | scenario( |
| 34 | "Session gate · an invalid session cookie is cleared on the way to /login", |