import { waitForRenderReady } from '@ringcentral-integration/test-utils/lib/test-utils' ; import { fireEvent , screen } from '@testing-library/react' ; import { StepFunction } from '../../../lib/step' ; export const NavigateToContactDetails = async ( { userName } ) => { const contactItem = await screen . findByTitle ( userName , { } , { timeout : 2000 } ) ; fireEvent . click ( contactItem ) ; const header = await screen . findByTestId ( 'headerTitle' ) ; expect ( header ) . toHaveTextContent ( 'Contact Details' ) ; } ;