mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Split the web console into by-job files, add page tests and a docs-table test, plus docs
AI Assisted
This commit is contained in:
1 parent
699a827cae
commit
3edb4468a8
121 files changed
+25603
-20145
No files matched your search
@@ -783,6 +783,19 @@ test("a finish is refused while its command still has a placeholder", () => {
|
||||
assert.match(res.stderr, /placeholder/);
|
||||
});
|
||||
|
||||
// The Subagents tab would otherwise spin on a helper long after the session ended.
|
||||
test("a finish is refused while a reported helper still shows as running", () => {
|
||||
const helper = (state, result) => ({ id: "h1", title: "Check the tests", ask: "Run them.", state, ...(result ? { result } : {}) });
|
||||
const running = cli(["post", "--session", sid, "--file", payload("fin-h-run.json", { helpers: [helper("running")], finish: { headline: "Done", command: "/x" } })], {
|
||||
expectFail: true,
|
||||
});
|
||||
assert.equal(running.status, 3);
|
||||
assert.match(running.stderr, /still shows as running/);
|
||||
assert.match(running.stderr, /"h1"/);
|
||||
const settled = cli(["post", "--session", sid, "--file", payload("fin-h-done.json", { helpers: [helper("done", "All pass.")], finish: { headline: "Done", command: "/x" } })]);
|
||||
assert.equal(settled.status, 0);
|
||||
});
|
||||
|
||||
test("a finish faces the same jargon and completion-marker scan as everything else", () => {
|
||||
const jargon = cli(
|
||||
["post", "--session", sid, "--file", payload("fin-j.json", { finish: { headline: "The grilling is over", command: "/x" } })],
|
||||
|
||||
Reference in new issue
Block a user