Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(docs): retry demo capture profile cleanup [I13]

Corey Olson4a25356c27cd
diff --git a/docs/shots/capture-browser.test.js b/docs/shots/capture-browser.test.js
index 400a565a..8079735d 100644
--- a/docs/shots/capture-browser.test.js
+++ b/docs/shots/capture-browser.test.js
@@ -68,9 +68,10 @@ test('demo capture waits for the intended HTTP document and populated board in C
} finally {
document.release(); state.release(); stylesheet.release();
if (!view) view = await opening.catch(() => null);
+ // close() waits for Chrome's process close before its profile can be removed.
if (view) await view.close();
server.closeAllConnections();
await new Promise((resolve) => server.close(resolve));
- await rm(base, { recursive: true, force: true });
+ await rm(base, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 });
}
});