1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

F #3951: Add attribute to tests (#866)

This commit is contained in:
Sergio Betanzos 2021-02-23 18:46:12 +01:00 committed by GitHub
parent 6c43f75bcb
commit 37d49c48bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ const SelectCard = memo(({
{...cardActionAreaProps}
className={clsx(classes.actionArea, cardActionAreaProps?.className)}
onClick={handleClick}
data-cy={(dataCy && isSelected) && `${dataCy}-card-selected`}
>
{children}
</CardActionArea>

View File

@ -61,7 +61,7 @@ const Settings = () => {
const { handleSubmit, setError, reset, formState, ...methods } = useForm({
reValidateMode: 'onSubmit',
defaultValues: settings,
resolver: () => yupResolver(FORM_SCHEMA)
resolver: yupResolver(FORM_SCHEMA)
})
React.useEffect(() => {