import * as SUT from '../../playwright-fluent' ; import * as path from 'path' ; describe ( 'Playwright Fluent - pause' , ( ) : void => { let p ; beforeEach ( ( ) : void => { p = new SUT . PlaywrightFluent ( ) ; } ) ; afterEach ( async ( ) : Promise < void > => { await p . close ( ) ; } ) ; test ( 'should not pause on CI - chromium' , async ( ) : Promise < void > => { const url = `file:${ path . join ( __dirname , 'pause.test.html' ) }` ; const selector = '#dynamically-added-input' ; await p . withBrowser ( 'chromium' ) . withOptions ( { headless : false } ) . withCursor ( ) . navigateTo ( url ) . pause ( ) . click ( selector ) ; const hasFocus = await p . hasFocus ( selector ) ; expect ( hasFocus ) . toBe ( true ) ; } ) ; } ) ;