import * as SUT from '..' ; import { Browser , webkit } from 'playwright' ; describe . skip ( 'get-focused-handle' , ( ) : void => { let browser = undefined ; beforeEach ( ( ) : void => { } ) ; afterEach ( async ( ) : Promise < void > => { if ( browser ) { await browser . close ( ) ; } } ) ; test ( 'should return handle when selector exists on the page - webkit' , async ( ) : Promise < void > => { browser = await webkit . launch ( { headless : true } ) ; const context = await browser . newContext ( { viewport : null } ) ; const page = await context . newPage ( ) ; const result = await SUT . getFocusedHandle ( page ) ; expect ( result ) . toBeDefined ( ) ; } ) ; } ) ;