(page: Page)
| 586 | } |
| 587 | |
| 588 | async function waitForPsnrFrameReady(page: Page): Promise<void> { |
| 589 | await expect.poll(async () => { |
| 590 | return page.evaluate(() => { |
| 591 | const api = (window as Window & { __COLMAP_WEBVIEW_E2E__?: ColmapWebViewE2EApi }).__COLMAP_WEBVIEW_E2E__; |
| 592 | return api?.getSplatPsnrState(null).frameReady ?? false; |
| 593 | }); |
| 594 | }, { timeout: 30_000 }).toBe(true); |
| 595 | } |
| 596 | |
| 597 | async function waitForBackgroundPsnrSettled(page: Page): Promise<void> { |
| 598 | await page.waitForTimeout(350); |
no outgoing calls
no test coverage detected