-
Notifications
You must be signed in to change notification settings - Fork 0
Task_9.Tests: add tests #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
<FastField name={formField.name} > | ||
{({ field, meta }: FieldProps) => <FormInput title={formField.title} field={field} meta={meta} />} | ||
<FastField name={formField.name} key={formField.title}> | ||
{({ field, meta }: FieldProps) => <FormInput key={formField.title} title={formField.title} field={field} meta={meta} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you need key
on this element?
@@ -60,10 +60,10 @@ export const ModalFooter: React.FC<{ | |||
return ( | |||
<ModalFooterContainer> | |||
<Button type={'reset'} onClick={onDecline} classNames={declineBtnCn}> | |||
<span className={declineBtnContentCn}>{declineContent}</span> | |||
<span data-testid={'decline-btn'} className={declineBtnContentCn}>{declineContent}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better:
data-testid="decline-btn"
</Button> | ||
<Button type={'submit'} onClick={onConfirm} classNames={confirmBtnCn}> | ||
<span className={confirmBtnContentCn}>{confirmContent}</span> | ||
<span data-testid={'confirm-btn'} className={confirmBtnContentCn}>{confirmContent}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-testid="confirm-btn"
@@ -13,7 +13,7 @@ export const Close: React.FC<{ | |||
); | |||
|
|||
return ( | |||
<div onClick={onClick} className={defaultClassNames} > | |||
<div data-testid={'close'} onClick={onClick} className={defaultClassNames} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-testid="close"
No description provided.