Last active
May 26, 2020 02:51
-
-
Save sir-dunxalot/05133f7143d98bd63bcb57c8e2bcba59 to your computer and use it in GitHub Desktop.
cypress-nextjs-auth0__spec--with-before
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', () => { | |
before(() => { | |
cy.login(); | |
}); | |
it('should successfully log in', () => { | |
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