Created
January 21, 2020 13:40
-
-
Save dariayermolova/05ac1d934a7c86236eb86cd233612e1b to your computer and use it in GitHub Desktop.
cypress (check status of response)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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