import * as SUT from '../../playwright-fluent' ; import * as action from '../../../actions' ; describe ( 'Playwright Fluent - withCursor' , ( ) : void => { let p ; beforeEach ( ( ) : void => { p = new SUT . PlaywrightFluent ( ) ; } ) ; afterEach ( async ( ) : Promise < void > => { await p . close ( ) ; } ) ; test ( 'should show cursor with firefox' , async ( ) : Promise < void > => { const url = 'https://reactstrap.github.io' ; await p . withBrowser ( 'firefox' ) . withOptions ( { headless : true } ) . withCursor ( ) . navigateTo ( url ) ; const cursorExists = await action . exists ( 'playwright-mouse-pointer' , p . currentPage ( ) ) ; expect ( cursorExists ) . toBe ( true ) ; } ) ; } ) ;