import { Selector } from 'testcafe' ; import { ROOT_URL , login } from '../e2e/utils' ; fixture `imported data check` . beforeEach ( async ( t ) => { await t . setNativeDialogHandler ( ( ) => true ) ; await t . navigateTo ( `${ ROOT_URL }/login` ) ; await login ( t ) ; } ) ; test ( 'wait entry' , async ( t ) => { await t . expect ( Selector ( 'a' ) . withText ( 'Ask HN: single comment' ) . exists ) . ok ( { timeout : 20000 } ) ; } ) ;