Cypress initial config and tests #90

Merged
jsegarra merged 26 commits from wbuezas/hedera-web-mindshore:feature/CypressInit into 4922-vueMigration 2024-11-12 12:24:41 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 5f0a2f9181 - Show all commits

View File

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