Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add types for Cypress.session.clearAllSavedSessions #19412

Merged
merged 7 commits into from
Dec 20, 2021
Merged
10 changes: 10 additions & 0 deletions cli/types/cypress.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ declare namespace Cypress {
*/
LocalStorage: LocalStorage

/**
* Internal class for session management.
*/
session: Session

/**
* Current testing type, determined by the Test Runner chosen to run.
*/
Expand Down Expand Up @@ -3117,6 +3122,11 @@ declare namespace Cypress {
onAnyAbort(route: RouteOptions, proxy: any): void
}

interface Session {
// Clear all saved sessions and re-run the current spec file.
clearAllSavedSessions: () => Promise<void>
}

type SameSiteStatus = 'no_restriction' | 'strict' | 'lax'

interface SetCookieOptions extends Loggable, Timeoutable {
Expand Down