test(e2e): test login page

This commit is contained in:
Dominik 2025-05-13 09:04:37 +02:00
parent bf73087ddf
commit 29f570c4c5
11 changed files with 90 additions and 5 deletions

View file

@ -10,6 +10,7 @@ export default function LoginForm() {
return (
<form
className='flex flex-col gap-5 w-full'
data-cy='login-form'
action={async (formData) => {
'use server';
try {
@ -27,17 +28,20 @@ export default function LoginForm() {
label='E-Mail or Username'
placeholder='What you are known as.'
name='email'
data-cy='email-input'
/>
<LabeledInput
type='password'
label='Password'
placeholder="Let's hope you remember it."
name='password'
data-cy='password-input'
/>
<Button
className='hover:bg-blue-600 hover:text-white'
type='submit'
variant='secondary'
data-cy='login-button'
>
Login
</Button>