Skip to content

Commit 5ad5ad4

Browse files
committed
Added login test
1 parent 309c1ab commit 5ad5ad4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/cypress/integration/ui/SetupLogin.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ describe('UI Setup and Login', () => {
1515
cy.get('input[name="password"]').type('changeme');
1616
cy.get('form button:first').click();
1717
cy.get('.navbar-nav .avatar').should('be.visible');
18+
// logout:
19+
cy.clearLocalStorage();
20+
});
21+
22+
it('Should be able to login', function() {
23+
cy.visit('/');
24+
cy.get('input[name="email"]').type('[email protected]');
25+
cy.get('input[name="password"]').type('changeme');
26+
cy.get('form button:first').click();
27+
cy.get('.navbar-nav .avatar').should('be.visible');
28+
// logout:
29+
cy.clearLocalStorage();
1830
});
1931

2032
});

0 commit comments

Comments
 (0)