Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 840 Bytes

apolloClient.md

File metadata and controls

55 lines (32 loc) · 840 Bytes

apolloClient

This commands create a new apollo client

Syntax

cy.apolloClient()

Usage

Arguments

> config (HostConfig)

If no authorization is passed, will use root credentials and cypress base url. Otherwise :

  • token: An API token
  • username
  • password
  • url

> options (ApolloClientOptions)

  • log : should the command be logged or not
  • setCurrentApolloClient : will set the created client to the currentApolloClient alias

Yields

The Apollo Client

Examples

cy.apolloClient()

Rules

Requirements

  • cy.apolloClient() requires being chained off of cy.

Assertions

Timeouts

Command Log

When clicking on apClient within the command log, the console outputs the following:

  • Auth: the authentication used
  • Yielded: the apollo client