/// describe.skip('Logout', () => { beforeEach(() => { cy.login('developer'); cy.visit(`/#/dashboard`); cy.waitForElement('.q-page', 6000); }); describe('by user', () => { it('should logout', () => { cy.get('#user').click(); cy.get('#logout').click(); }); }); describe('not user', () => { beforeEach(() => { cy.intercept('GET', '**StarredModules**', { statusCode: 401, body: { error: { statusCode: 401, name: 'Error', message: 'Authorization Required', code: 'AUTHORIZATION_REQUIRED', }, }, statusMessage: 'AUTHORIZATION_REQUIRED', }).as('badRequest'); }); it('when token not exists', () => { cy.get('.q-list').should('be.visible').first().should('be.visible').click(); cy.wait('@badRequest'); cy.checkNotification('Authorization Required'); }); }); });