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

Function runWebSmoke

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

Source from the content-addressed store, hash-verified

42);
43
44async function runWebSmoke(context: WebSmokeContext): Promise<void> {
45 let opened = false;
46
47 try {
48 await runStep(context, 'set up managed web backend', ['web', 'setup', '--json']);
49 await runStep(context, 'verify managed web backend', ['web', 'doctor', '--json']);
50 await runStep(context, 'open local fixture', ['open', context.url, ...context.common]);
51 opened = true;
52 await assertInitialWebSurface(context);
53 await assertWebNetwork(context);
54 await assertReadAndVisibility(context);
55 await assertWebInteractions(context);
56 await assertWebScreenshot(context);
57 } finally {
58 await cleanupWebSmoke(context, opened);
59 }
60}
61
62async function createWebSmokeContext(): Promise<WebSmokeContext> {
63 const artifactDir = createArtifactDir();

Callers 1

Calls 7

assertInitialWebSurfaceFunction · 0.85
assertWebNetworkFunction · 0.85
assertReadAndVisibilityFunction · 0.85
assertWebInteractionsFunction · 0.85
assertWebScreenshotFunction · 0.85
cleanupWebSmokeFunction · 0.85
runStepFunction · 0.70

Tested by

no test coverage detected