Skip to content

Instantly share code, notes, and snippets.

@dariayermolova
Created January 21, 2020 13:48
Show Gist options
  • 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