import React from 'react'; import { Formik, Form as FormikForm } from 'formik'; import { fireEvent, render, act } from '@testing-library/react'; import { FormTextField } from '..'; interface Form { firstName: string; } const onSubmit = jest.fn(); const testId = 'text-field-form'; const fieldLabel = 'First name'; const errorMessage = 'This field is required'; const validate = (values: Form) => { const errors: Partial