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')
})
})
})
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')
})
})
})