import { screen } from '@testing-library/react' ; import { StepFunction } from '../../../lib/step' ; export const CheckContactNotFoundTextExist = ( ) => { const contactItem = screen . getByTestId ( 'contactList' ) ; expect ( contactItem ) . toHaveAttribute ( 'data-contact-count' , '0' ) ; expect ( contactItem ) . toHaveTextContent ( 'No records found.' ) ; } ;