test: cover mantis slack failure summary metadata · openclaw/openclaw@d65d401
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
File tree
extensions/qa-lab/src/mantis
| Original file line number | Diff line number | Diff line change |
|---|
@@ -526,9 +526,18 @@ describe("mantis Slack desktop smoke runtime", () => {
|
526 | 526 | const summary = JSON.parse(await fs.readFile(result.summaryPath, "utf8")) as { |
527 | 527 | artifacts: { screenshotPath?: string; videoPath?: string }; |
528 | 528 | error?: string; |
| 529 | +hydrateMode: string; |
529 | 530 | status: string; |
| 531 | +timings: { phases: { name: string; status: string }[]; totalMs: number }; |
530 | 532 | }; |
531 | 533 | expect(summary.status).toBe("fail"); |
| 534 | +expect(summary.hydrateMode).toBe("source"); |
| 535 | +expect(summary.timings.totalMs).toBeGreaterThanOrEqual(0); |
| 536 | +expect(summary.timings.phases).toEqual( |
| 537 | +expect.arrayContaining([ |
| 538 | +expect.objectContaining({ name: "crabbox.remote_run", status: "fail" }), |
| 539 | +]), |
| 540 | +); |
532 | 541 | expect(summary.error).toContain("remote Slack QA failed"); |
533 | 542 | expect(summary.artifacts.screenshotPath).toContain("slack-desktop-smoke.png"); |
534 | 543 | expect(summary.artifacts.videoPath).toContain("slack-desktop-smoke.mp4"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。