mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
13 lines
522 B
TypeScript
13 lines
522 B
TypeScript
|
|
describe('Login test', () => {
|
||
|
|
it('logs user in with correct credentials and logs user out', () => {
|
||
|
|
cy.visit('/login');
|
||
|
|
cy.dataCy('input-username').type(Cypress.env('umami_user'));
|
||
|
|
cy.dataCy('input-password').type(Cypress.env('umami_password'));
|
||
|
|
cy.dataCy('button-submit').click();
|
||
|
|
cy.url().should('eq', Cypress.config().baseUrl + '/dashboard');
|
||
|
|
cy.dataCy('button-profile').click();
|
||
|
|
cy.dataCy('item-logout').click();
|
||
|
|
cy.url().should('eq', Cypress.config().baseUrl + '/login');
|
||
|
|
});
|
||
|
|
});
|