import { waitFor , screen } from '@testing-library/react' ; import { StepFunction } from '../../../lib/step' ; export const CheckAlertMessage = async ( { message } ) => { await waitFor ( ( ) => { expect ( screen . getByTestId ( 'alert' ) ) . toHaveTextContent ( message ) ; } , { timeout : 3000 } ) ; } ;