mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01: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');
|
|
});
|
|
});
|