Skip to content

Instantly share code, notes, and snippets.

@sir-dunxalot
Last active May 26, 2020 02:51
Show Gist options
  • Save sir-dunxalot/05133f7143d98bd63bcb57c8e2bcba59 to your computer and use it in GitHub Desktop.
Save sir-dunxalot/05133f7143d98bd63bcb57c8e2bcba59 to your computer and use it in GitHub Desktop.
cypress-nextjs-auth0__spec--with-before
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