test: integrate cypress
Some checks failed
container-scan / Container Scan (pull_request) Successful in 5m58s
docker-build / docker (pull_request) Successful in 5m57s
tests / Tests (pull_request) Failing after 7m21s

This commit is contained in:
Dominik 2025-06-25 14:24:23 +02:00
parent 3a4695bc03
commit 4c6e66c1a2
21 changed files with 1396 additions and 39 deletions

12
cypress/e2e/auth-user.ts Normal file
View file

@ -0,0 +1,12 @@
export default function authUser() {
cy.visit('http://127.0.0.1:3000/login');
cy.getBySel('login-header').should('exist');
cy.getBySel('login-form').should('exist');
cy.getBySel('email-input').should('exist');
cy.getBySel('password-input').should('exist');
cy.getBySel('login-button').should('exist');
cy.getBySel('email-input').type('cypress@example.com');
cy.getBySel('password-input').type('Password123!');
cy.getBySel('login-button').click();
cy.url().should('include', '/home');
}