test: add e2e automated tests

This commit is contained in:
Divlo
2022-08-26 23:47:48 +02:00
parent 50d724eb6a
commit 0819304e1e
12 changed files with 3177 additions and 6 deletions

View File

@ -24,8 +24,13 @@ export const Input: React.FC<InputProps> = (props) => {
{...rest}
id={name}
name={name}
data-cy={`input-${name}`}
/>
<FormState
id={`error-${name ?? 'input'}`}
state={error == null ? 'idle' : 'error'}
message={error}
/>
<FormState state={error == null ? 'idle' : 'error'} message={error} />
</div>
</div>
)