refactor: create helpers.ts & add Cookie
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { logger, field } from "@coder/logger"
|
||||
import { Cookie } from "../../test/helpers"
|
||||
|
||||
export interface Options {
|
||||
base: string
|
||||
@ -121,21 +122,6 @@ export function logError(prefix: string, err: any): void {
|
||||
}
|
||||
}
|
||||
|
||||
// Borrowed from playwright
|
||||
export interface Cookie {
|
||||
name: string
|
||||
value: string
|
||||
domain: string
|
||||
path: string
|
||||
/**
|
||||
* Unix time in seconds.
|
||||
*/
|
||||
expires: number
|
||||
httpOnly: boolean
|
||||
secure: boolean
|
||||
sameSite: "Strict" | "Lax" | "None"
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a cookie exists in array of cookies
|
||||
*/
|
||||
|
Reference in New Issue
Block a user