test: outline qa markdown report

This commit is contained in:
Shakker
2026-05-12 18:49:48 +01:00
parent e7c1d10f1d
commit 61903a2f08
+25 -3
View File
@@ -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
\`\`\`
`);
});
});