This commands create a new apollo client
cy.apolloClient()
If no authorization is passed, will use root credentials and cypress base url. Otherwise :
- token: An API token
- username
- password
- url
log
: should the command be logged or notsetCurrentApolloClient
: will set the created client to thecurrentApolloClient
alias
The Apollo Client
cy.apolloClient()
cy.apolloClient()
requires being chained off ofcy
.
When clicking on apClient
within the command log, the console outputs the following:
Auth
: the authentication usedYielded
: the apollo client