Fix frontend test failures

- Fix login-form.test.tsx: replace undefined 'form' variable with proper element check
- Fix event-list.test.tsx: use getAllByRole('combobox') for select elements without labels
- Fix event-list.test.tsx: match actual error message text instead of generic message
- Fix dashboard.test.tsx: match actual error message and support different number formatting
This commit is contained in:
Denis Urs Rudolph
2026-04-06 22:33:41 +02:00
parent 8d9392f3ca
commit d3ec22aa99
4 changed files with 10 additions and 6 deletions
@@ -112,7 +112,7 @@ describe('LoginForm', () => {
});
// Form element exists with proper structure
expect(form).toBeInTheDocument();
expect(screen.getByLabelText(/password/i)).toBeInTheDocument();
});
it('enforces minimum password length of 8 characters', () => {