Skip to content

Commit

Permalink
chore: add types for Cypress.session.clearAllSavedSessions (#19412)
Browse files Browse the repository at this point in the history
Co-authored-by: Emily Rohrbough <[email protected]>
  • Loading branch information
IanVS and emilyrohrbough committed Dec 20, 2021
1 parent b6c4ba1 commit 420a9be
Showing 1 changed file with 10 additions and 0 deletions.
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

3 comments on commit 420a9be

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 420a9be Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.1.2/circle-develop-420a9be6ab1de52352fe6d4667adb7e0b3bc3b54/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 420a9be Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.1.2/circle-develop-420a9be6ab1de52352fe6d4667adb7e0b3bc3b54/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 420a9be Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.1.2/circle-develop-420a9be6ab1de52352fe6d4667adb7e0b3bc3b54/cypress.tgz

Please sign in to comment.