mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
add cypress docker compose file
This commit is contained in:
parent
59f4d9aff8
commit
44d8606d1a
4 changed files with 69 additions and 11 deletions
|
|
@ -1,12 +1,18 @@
|
|||
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');
|
||||
});
|
||||
it(
|
||||
'logs user in with correct credentials and logs user out',
|
||||
{
|
||||
defaultCommandTimeout: 10000,
|
||||
},
|
||||
() => {
|
||||
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');
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue