Fix: document finish screenshot fallback (#568)

Finish required screenshots but named no web capture method, so agents ran npx playwright install and could hang after a 100% download.

AI-assisted: prepared with Cursor Grok under @abdulwahabone direction.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Abdul Wahab
2026-09-01 14:38:18 +05:00
co-authored by Cursor
parent 94b7f34f6e
commit a2c00964ca
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -67,4 +67,14 @@ describe('skill reference authoring contracts', () => {
assert.match(polish, /if a newer critique landed meanwhile, its backlog stays live/);
assert.doesNotMatch(polish, /git status|git log/);
});
it('finish capture forbids installing a Playwright browser and names the installed-browser fallback', () => {
const newWork = readFileSync(join(ROOT, 'skill/reference/new-work.md'), 'utf-8').replace(/\r\n?/g, '\n');
const inspectAndFinish = newWork.match(/## 7\. Inspect and finish\n([\s\S]*?)(?:\n## |$)/)?.[1] ?? '';
assert.match(inspectAndFinish, /native or browser-canvas screenshot path/);
assert.match(inspectAndFinish, /npx playwright install/);
assert.match(inspectAndFinish, /installed Chrome/);
assert.match(inspectAndFinish, /leftover page from another process on the same localhost port/);
});
});