( page: Page, fixtureFiles: TestDatasetFileEntry[] )
| 645 | } |
| 646 | |
| 647 | async function loadWebGpuFixtureAndWait( |
| 648 | page: Page, |
| 649 | fixtureFiles: TestDatasetFileEntry[] |
| 650 | ): Promise<WebGpuSplatDebugCounters> { |
| 651 | await loadTestDataset(page, fixtureFiles); |
| 652 | await expect(page.locator('text=Source:')).toBeVisible({ timeout: 45_000 }); |
| 653 | await switchPointCloudToSplats(page); |
| 654 | await waitForWebGpuSplatCanvasVisible(page); |
| 655 | await waitForPsnrFrameReady(page); |
| 656 | await page.evaluate(async () => { |
| 657 | const api = (window as Window & { __COLMAP_WEBVIEW_E2E__?: ColmapWebViewE2EApi }).__COLMAP_WEBVIEW_E2E__; |
| 658 | await api?.waitForRenderFrames(6); |
| 659 | }); |
| 660 | await waitForBackgroundPsnrSettled(page); |
| 661 | |
| 662 | return getWebGpuSplatDebugCounters(page); |
| 663 | } |
| 664 | |
| 665 | async function waitForSelectedPsnrReadyAfter( |
| 666 | page: Page, |
no test coverage detected