Created
May 26, 2020 01:34
-
-
Save sir-dunxalot/88cc836eae5a9aeb6b62859364ed4c02 to your computer and use it in GitHub Desktop.
cypress-nextjs-auth0__spec
This file contains hidden or 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
context('Logging in', () => { | |
it('should successfully log in', () => { | |
cy.login().then(() => { | |
cy.visit('/'); | |
cy.request('/api/me').then(({ body: user }) => { | |
expect(user).to.exist; | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment