Skip to content

Instantly share code, notes, and snippets.

@dariayermolova
Created January 21, 2020 13:40
Show Gist options
  • Save dariayermolova/05ac1d934a7c86236eb86cd233612e1b to your computer and use it in GitHub Desktop.
Save dariayermolova/05ac1d934a7c86236eb86cd233612e1b to your computer and use it in GitHub Desktop.
cypress (check status of response)
cy.server()
cy.route({
method: 'POST',
url: '/authenticate?'
}).as('loginApi')
cy.wait('@loginApi').its('status').should('eq', 200).then(() => {
cy.url().should('include', '/home')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment