diff --git a/src/test/cypress/integration/login/LoginView.spec.js b/src/test/cypress/integration/login/LoginView.spec.js index beca0ba1..7245fcd3 100644 --- a/src/test/cypress/integration/login/LoginView.spec.js +++ b/src/test/cypress/integration/login/LoginView.spec.js @@ -88,4 +88,13 @@ describe('Login Tests', () => { expect(window.sessionStorage.getItem('hederaLastUser')).to.eq(null); }); }); + + it('should redirect to login if storage token is removed', () => { + cy.loginFlow('employee', false); + cy.window().then(window => { + window.sessionStorage.removeItem('token'); + cy.visit('/#/account/conf'); + cy.url().should('contain', '/#/login'); + }); + }); });