From 61903a2f08645f2bfc6642cf09cbe1482d41b604 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 18:49:48 +0100 Subject: [PATCH] test: outline qa markdown report --- extensions/qa-lab/src/report.test.ts | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/extensions/qa-lab/src/report.test.ts b/extensions/qa-lab/src/report.test.ts index 15f9294d4b98..833066590055 100644 --- a/extensions/qa-lab/src/report.test.ts +++ b/extensions/qa-lab/src/report.test.ts @@ -22,8 +22,30 @@ describe("renderQaMarkdownReport", () => { ], }); - expect(report).toContain("```text"); - expect(report).toContain("USER Alice: hello"); - expect(report).toContain("ASSISTANT OpenClaw: my precious build"); + expect(report).toBe(`# QA + +- Started: 2026-04-08T10:00:00.000Z +- Finished: 2026-04-08T10:00:02.000Z +- Duration ms: 2000 +- Passed: 1 +- Failed: 0 + + +## Scenarios + +### Character vibes: Gollum improv + +- Status: pass +- Steps: + - [x] records transcript + - Details: + +\`\`\`text +USER Alice: hello + +ASSISTANT OpenClaw: my precious build +\`\`\` + +`); }); });