End-to-End Testing with Cypress and Auth0

So how do you test a restricted page? This just times out:

 describe('Restricted page', () => {
  it('should render the page', () => {
    cy.login().then(() => {
      cy.visit('/restricted')
      cy.get('h1').contains('Restricted')
    })
  })
})
1 Like