import type { Page } from '@playwright/test' import { startHiddenRendererFrameCapture as startCapture } from '../../../src/main/browser/electron-fixtures/hidden-renderer-frame-capture-fixture' import { expect } from './orca-app' export async function startHiddenRendererFrameCapture(page: Page): Promise<() => Promise> { return startCapture(page, async (hasFrame) => { await expect.poll(hasFrame).toBe(true) }) }