Drop the nothing-changed-yet line from Quick task's post-build review cards

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 00:10:45 -08:00
1 parent 31edc2d5c9
commit a9e0bf49f0
3 files changed
+15 -2

No files matched your search

+13
View File
@@ -948,6 +948,19 @@ test("notes/quick-task.md has the finished quick task offer Back to the dashboar
assert.ok(bullet.includes("Review it now"));
});
// A review card says "Nothing has been changed yet" unless it sends nothingYet:false
// (screens/cards.js), and both of these come after the build is on disk.
test("notes/quick-task.md has its post-build review cards drop the nothing-changed-yet line", () => {
const md = fs.readFileSync(path.join(ROOT, "src", "web-console", "notes", "quick-task.md"), "utf8");
const bullet = md.slice(md.indexOf("**See it running, before the finish:**"), md.indexOf("**Archive a finished folder:**"));
for (const title of ["See it running", "Does it look right?"]) {
const at = bullet.indexOf(`\`review\` "${title}" (`);
assert.ok(at >= 0, `the ${title} card is specified`);
const spec = bullet.slice(at, bullet.indexOf("with `--wait`", at));
assert.ok(spec.includes('"nothingYet":false'), `the ${title} card sends nothingYet:false`);
}
});
// Show me it working: a screenshot saved under <session>/shots/ posts as an
// image block and is served back; nothing else is reachable through /shots/.
test("an image block under the session's shots folder round-trips, and /shots/ serves nothing else", async () => {