Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Chainable<Subject>

Type parameters

  • Subject = any

Hierarchy

  • Chainable

Index

Methods

intercept

route2

  • deprecated

    Use cy.intercept() instead.

    Parameters

    Returns Chainable<null>

  • deprecated

    Use cy.intercept() instead.

    Parameters

    Returns Chainable<null>

wait

  • Wait for a specific request to complete.

    see

    https://on.cypress.io/wait

    Parameters

    • alias: string

      Name of the alias to wait for.

      // Wait for the route aliased as 'getAccount' to respond
      // without changing or stubbing its response
      cy.intercept('https://api.example.com/accounts/*').as('getAccount')
      cy.visit('/accounts/123')
      cy.wait('@getAccount').then((interception) => {
      // we can now access the low level request
      // that contains the request body,
      // response body, status, etc
      })
    • Optional options: Partial<WaitOptions>

    Returns Chainable<Interception>

  • Wait for list of requests to complete.

    see

    https://on.cypress.io/wait

    Parameters

    • alias: string[]
    • Optional options: Partial<WaitOptions>

    Returns Chainable<Interception[]>

Generated using TypeDoc