Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Task_9.Tests: add tests #7

wants to merge 1 commit into from

Conversation

dmitry-mf
Copy link
Owner

No description provided.

<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} />}

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>

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>

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} >

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-testid="close"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants