New login test
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details

This commit is contained in:
William Buezas 2024-10-24 14:09:28 -03:00
parent eea2ad7984
commit 5f0a2f9181
1 changed files with 9 additions and 0 deletions

View File

@ -88,4 +88,13 @@ describe('Login Tests', () => {
expect(window.sessionStorage.getItem('hederaLastUser')).to.eq(null); 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');
});
});
}); });