mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-13 06:36:26 +03:00
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:
@@ -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/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user