MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / captureBoth

Function captureBoth

e2e/desktop/traffic-light-overlap.test.ts:88–94  ·  view source on GitHub ↗
(page: Page, runDir: string, state: string)

Source from the content-addressed store, hash-verified

86const REMOVE_LIGHTS_JS = `document.getElementById('__repro_1125_trafficlights')?.remove()`;
87
88const 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
96const box = async (locator: Locator, label: string) => {
97 const b = await locator.boundingBox();

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected