import { getTestServers , waitForServersIdle } from '../framework' ; import { browserExecuteAsync } from './browser' ; export async function flushEvents ( ) { await browserExecuteAsync ( ( done ) => setTimeout ( ( ) => { done ( undefined ) ; } , 200 ) ) ; await waitForServersIdle ( ) ; const servers = await getTestServers ( ) ; await browser . url ( `${ servers . base . url }/ok?duration=200` ) ; await waitForServersIdle ( ) ; }