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

Function assertWebInteractions

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

Source from the content-addressed store, hash-verified

159}
160
161async function assertWebInteractions(context: WebSmokeContext): Promise<void> {
162 await runStep(context, 'click submit', ['click', 'label="Submit order"', ...context.common]);
163 await runStep(context, 'wait for click result', [
164 'wait',
165 'text',
166 'Submitted',
167 '5000',
168 ...context.common,
169 ]);
170 await runStep(context, 'fill email field', [
171 'fill',
172 'label="Email"',
173 'qa@example.test',
174 ...context.common,
175 ]);
176 await runStep(context, 'wait for fill result', [
177 'wait',
178 'text',
179 'Email qa@example.test',
180 '5000',
181 ...context.common,
182 ]);
183}
184
185async function assertWebScreenshot(context: WebSmokeContext): Promise<void> {
186 await assertCommandData(

Callers 1

runWebSmokeFunction · 0.85

Calls 1

runStepFunction · 0.70

Tested by

no test coverage detected