import { PlaywrightFluent , cast } from '../../playwright-fluent' ; describe ( 'Playwright Fluent - cast' , ( ) : void => { beforeEach ( ( ) : void => { } ) ; test ( 'should cast' , async ( ) : Promise < void > => { const p = new PlaywrightFluent ( ) ; const ctx = { } as any ; ctx . p = p ; const castedInstance = cast ( ctx . p ) ; expect ( castedInstance instanceof PlaywrightFluent ) . toBe ( true ) ; expect ( castedInstance ) . toBe ( p ) ; } ) ; } ) ;