test(e2e): test login page

This commit is contained in:
Dominik 2025-05-13 09:04:37 +02:00
parent af28f8e7f1
commit 69ea057f05
Signed by: dominik
GPG key ID: 06A4003FC5049644
11 changed files with 91 additions and 8 deletions

View file

@ -6,14 +6,15 @@ export default function LabeledInput({
label,
placeholder,
value,
name,
...props
}: {
type: 'text' | 'email' | 'password';
label: string;
placeholder?: string;
value?: string;
name?: string;
}) {
} & React.InputHTMLAttributes<HTMLInputElement>) {
const elementId = Math.random().toString(36).substring(2, 15);
return (
<div className='flex flex-col gap-1'>
<Label htmlFor={name}>{label}</Label>
@ -22,8 +23,8 @@ export default function LabeledInput({
type={type}
placeholder={placeholder}
defaultValue={value}
id={name}
name={name}
id={elementId}
{...props}
/>
</div>
);