| 86 | const REMOVE_LIGHTS_JS = `document.getElementById('__repro_1125_trafficlights')?.remove()`; |
| 87 | |
| 88 | const captureBoth = async (page: Page, runDir: string, state: string) => { |
| 89 | await page.evaluate(REMOVE_LIGHTS_JS); |
| 90 | await page.screenshot({ path: join(runDir, `${state}-webview.png`) }); |
| 91 | await page.evaluate(TRAFFIC_LIGHTS_JS); |
| 92 | await page.screenshot({ path: join(runDir, `${state}-overlap.png`) }); |
| 93 | await page.evaluate(REMOVE_LIGHTS_JS); |
| 94 | }; |
| 95 | |
| 96 | const box = async (locator: Locator, label: string) => { |
| 97 | const b = await locator.boundingBox(); |