(page: Page)
| 569 | } |
| 570 | |
| 571 | async function switchPointCloudToSplats(page: Page): Promise<void> { |
| 572 | const pointCloudButton = page.locator('button[aria-label^="Point Cloud:"]').first(); |
| 573 | await expect(pointCloudButton).toBeVisible({ timeout: 10_000 }); |
| 574 | |
| 575 | for (let attempt = 0; attempt < 7; attempt += 1) { |
| 576 | const label = await pointCloudButton.getAttribute('aria-label'); |
| 577 | if (label === 'Point Cloud: Splats (P)') { |
| 578 | return; |
| 579 | } |
| 580 | |
| 581 | await page.keyboard.press('p'); |
| 582 | await page.waitForTimeout(50); |
| 583 | } |
| 584 | |
| 585 | await expect(pointCloudButton).toHaveAttribute('aria-label', 'Point Cloud: Splats (P)'); |
| 586 | } |
| 587 | |
| 588 | async function waitForPsnrFrameReady(page: Page): Promise<void> { |
| 589 | await expect.poll(async () => { |
no outgoing calls
no test coverage detected