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

Function step

e2e/desktop/reset-state.test.ts:52–59  ·  view source on GitHub ↗
(label: string, body: () => Promise<void>)

Source from the content-addressed store, hash-verified

50 try {
51 const page = await app.firstWindow({ timeout: 120_000 });
52 const step = async (label: string, body: () => Promise<void>) => {
53 await body();
54 stepIndex += 1;
55 const slug = label.toLowerCase().replace(/[^a-z0-9]+/g, "-");
56 await page.screenshot({
57 path: join(runDir, `${String(stepIndex).padStart(2, "0")}-${slug}.png`),
58 });
59 };
60
61 await step("app boots into the web console", async () => {
62 await page.getByText("Settings").first().waitFor({ timeout: 120_000 });

Callers 1

runFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected