Skip to content

Instantly share code, notes, and snippets.

@dariayermolova
Created January 21, 2020 13:49
Show Gist options
  • Save dariayermolova/83ac7f88f5991bc314967dc652084691 to your computer and use it in GitHub Desktop.
Save dariayermolova/83ac7f88f5991bc314967dc652084691 to your computer and use it in GitHub Desktop.
cypress (check response2)
cy.server();
cy.route(url:'POST', response:'/users').as(alias:'addUser');
cy.wait(alias:'@addUser').should((xhr) => {
expect(xhr.responseBody).to.include('name')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment