test(coding-agent): updated merged regression assertions

This commit is contained in:
can1357
2026-07-02 23:51:19 +02:00
parent d806cd6b85
commit 2632aace00
2 changed files with 6 additions and 4 deletions
@@ -217,7 +217,8 @@ describe("tiny title subprocess", () => {
expect(calls).toHaveLength(1);
expect(calls[0]?.options.stdout).toBe("ignore");
expect(calls[0]?.options.stderr).toBe("ignore");
expect(calls[0]?.options.stderr).not.toBe("inherit");
expect(calls[0]?.options.stderr).not.toBe("pipe");
await worker.proc.exited;
});
});
@@ -156,16 +156,17 @@ describe("ToolExecutionComponent SSH repaint seams", () => {
component.updateResult(sshResult("partial output"), true);
tui.requestRender();
await drain(scheduler, term);
expect(plainBuffer(term).some(row => row.includes("⏳ SSH: [router]"))).toBe(true);
const partialRows = plainBuffer(term);
expect(partialRows.some(row => row.includes("SSH: [router]"))).toBe(true);
expect(partialRows.some(row => row.includes("partial output"))).toBe(true);
component.updateResult(sshResult("final output"), false);
tui.requestRender();
await drain(scheduler, term);
const rows = plainBuffer(term);
expect(rows.some(row => row.includes("⏳ SSH: [router]"))).toBe(false);
expect(rows.some(row => row.includes("partial output"))).toBe(false);
expect(rows.some(row => row.includes("⇄ SSH: [router]"))).toBe(true);
expect(rows.filter(row => row.includes("SSH: [router]"))).toHaveLength(1);
expect(rows.some(row => row.includes("Output"))).toBe(true);
expect(rows.some(row => row.includes("final output"))).toBe(true);
} finally {