MCPcopy
hub / github.com/callstack/agent-device / assertWebScreenshot

Function assertWebScreenshot

test/integration/smoke-web-platform.test.ts:185–193  ·  view source on GitHub ↗
(context: WebSmokeContext)

Source from the content-addressed store, hash-verified

183}
184
185async function assertWebScreenshot(context: WebSmokeContext): Promise<void> {
186 await assertCommandData(
187 context,
188 'capture screenshot artifact',
189 ['screenshot', context.screenshotPath, '--full', '--no-stabilize'],
190 { path: context.screenshotPath },
191 );
192 assertPngFile(context.screenshotPath);
193}
194
195async function assertCommandData(
196 context: WebSmokeContext,

Callers 1

runWebSmokeFunction · 0.85

Calls 2

assertPngFileFunction · 0.90
assertCommandDataFunction · 0.85

Tested by

no test coverage detected