test: add event creation test
This commit is contained in:
parent
dbf9809c7b
commit
1ec636f3b0
9 changed files with 251 additions and 189 deletions
|
@ -17,6 +17,7 @@ export default function LabeledInput({
|
|||
variantSize = 'default',
|
||||
autocomplete,
|
||||
error,
|
||||
'data-cy': dataCy,
|
||||
...rest
|
||||
}: {
|
||||
label: string;
|
||||
|
@ -30,6 +31,7 @@ export default function LabeledInput({
|
|||
variantSize?: 'default' | 'big' | 'textarea';
|
||||
autocomplete?: string;
|
||||
error?: string;
|
||||
'data-cy'?: string;
|
||||
} & React.InputHTMLAttributes<HTMLInputElement>) {
|
||||
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
||||
const [inputValue, setInputValue] = React.useState(
|
||||
|
@ -58,6 +60,7 @@ export default function LabeledInput({
|
|||
id={name}
|
||||
name={name}
|
||||
rows={3}
|
||||
data-cy={dataCy}
|
||||
/>
|
||||
) : (
|
||||
<span className='relative'>
|
||||
|
@ -76,6 +79,7 @@ export default function LabeledInput({
|
|||
id={name}
|
||||
name={name}
|
||||
autoComplete={autocomplete}
|
||||
data-cy={dataCy}
|
||||
{...rest}
|
||||
onChange={handleInputChange}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue