MeetUp/cypress/e2e/login.cy.ts
Dominik Stahl 3a18e17bb6
Some checks failed
container-scan / Container Scan (pull_request) Successful in 2m8s
docker-build / docker (pull_request) Successful in 3m55s
tests / Tests (pull_request) Failing after 7m15s
fix: listen on 127.0.0.1
2025-05-13 13:38:04 +02:00

31 lines
836 B
TypeScript

describe('login', () => {
it('loads', () => {
cy.visit('http://127.0.0.1:3000/');
cy.getBySel('login-header').should('exist');
});
it('shows login form', () => {
cy.visit('http://127.0.0.1:3000/');
cy.getBySel('login-form').should('exist');
cy.getBySel('email-input').should('exist');
cy.getBySel('password-input').should('exist');
cy.getBySel('login-button').should('exist');
});
it('shows sso button', () => {
cy.visit('http://127.0.0.1:3000/');
cy.getBySel('sso-login-button_authentik').should('exist');
});
it('allows login', () => {
cy.visit('http://127.0.0.1:3000/');
cy.getBySel('email-input').type('test@example.com');
cy.getBySel('password-input').type('password');
cy.getBySel('login-button').click();
cy.url().should('include', '/home');
});
});