Migrated EditServer test from enzyme to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-02 18:47:18 +02:00
parent d3f180f270
commit e837ee5225
2 changed files with 38 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ export const ServerForm: FC<ServerFormProps> = ({ onSubmit, initialValues, child
}, [initialValues]);
return (
<form className="server-form" onSubmit={handleSubmit}>
<form className="server-form" name="serverForm" onSubmit={handleSubmit}>
<SimpleCard className="mb-3" title={title}>
<InputFormGroup value={name} onChange={setName}>Name</InputFormGroup>
<InputFormGroup type="url" value={url} onChange={setUrl}>URL</InputFormGroup>