Skip to content

Instantly share code, notes, and snippets.

@dariayermolova
Created January 21, 2020 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariayermolova/0d53a9fba4d0cd3286cc722c54470c4f to your computer and use it in GitHub Desktop.
Save dariayermolova/0d53a9fba4d0cd3286cc722c54470c4f to your computer and use it in GitHub Desktop.
cypress (check response)
cy.server();
cy.route(url:'POST', response:'/users').as(alias:'addUser');
cy.wait(alias:'@addUser').should((xhr) => {
expect(xhr.responseBody.name).to.eq('name')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment