test(e2e): test login page
This commit is contained in:
parent
bf73087ddf
commit
29f570c4c5
11 changed files with 90 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue