New login test
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
This commit is contained in:
parent
eea2ad7984
commit
5f0a2f9181
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue