mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +01:00
add prelim website tests
This commit is contained in:
parent
14c0c5060a
commit
7ded5fc6c9
7 changed files with 73 additions and 11 deletions
|
|
@ -1,15 +1,11 @@
|
|||
describe('Login test', () => {
|
||||
describe('Login tests', () => {
|
||||
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.login(Cypress.env('umami_user'), Cypress.env('umami_password'));
|
||||
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