feat: cypress init (#1520)

* feat: cypress init

* lint fixes

* fix

* path-fix

* lint-fix
This commit is contained in:
Ramveer
2022-09-09 10:51:23 +02:00
committed by GitHub
parent 4e73f11dd3
commit 18f0251837
15 changed files with 274 additions and 9 deletions
+26
View File
@@ -0,0 +1,26 @@
describe('Login Page', () => {
it('Visits the initial web page', () => {
cy.visit('/');
cy.url().should('includes', 'login');
cy.get('#mat-input-0').should ('be.visible');
cy.get('#mat-input-1').should ('be.visible');
cy.contains('Login');
cy.contains('Remember me');
});
it('Login', () => {
cy.visit('/');
cy.get('#mat-input-0').type('mifos');
cy.get('#mat-input-1').type('password');
cy.get('.mat-raised-button').click();
cy.contains('Home');
});
it('Logout', () => {
cy.visit('/#/home');
cy.get('.img-button').click();
cy.get('#logout').click();
cy.contains('Username');
});
});