惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
月光博客
月光博客
博客园 - Franky
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
有赞技术团队
有赞技术团队
V
V2EX
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
Martin Fowler
Martin Fowler
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
WordPress大学
WordPress大学
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: add QA Lab UX Matrix evidence scenario (#94306) · o...
Solvely-Coli · 2026-06-19 · via Recent Commits to openclaw:main

@@ -3,7 +3,7 @@ import os from "node:os";

33

import path from "node:path";

44

import { afterEach, describe, expect, it } from "vitest";

55

import { validateQaEvidenceSummaryJson } from "./evidence-summary.js";

6-

import type { QaSeedScenarioWithSource } from "./scenario-catalog.js";

6+

import { readQaScenarioById, type QaSeedScenarioWithSource } from "./scenario-catalog.js";

77

import {

88

runQaTestFileScenarios,

99

type QaScenarioCommandExecution,

@@ -689,4 +689,65 @@ describe("qa test file scenario runner", () => {

689689

expect(artifactPath).toBe(path.normalize(externalArtifact));

690690

expect(artifactPath?.includes("..")).toBe(false);

691691

});

692+693+

it("runs the UX Matrix script producer and imports its evidence bundle", async () => {

694+

const repoRoot = process.cwd();

695+

const outputDir = await fs.mkdtemp(path.join(os.tmpdir(), "qa-ux-matrix-script-"));

696+

tempRoots.push(outputDir);

697+

const scenario = readQaScenarioById("ux-matrix-evidence-dashboard");

698+699+

expect(scenario.execution.kind).toBe("script");

700+

const result = await runQaTestFileScenarios({

701+

repoRoot,

702+

outputDir,

703+

providerMode: "mock-openai",

704+

primaryModel: "mock-openai/gpt-5.5",

705+

scenarios: [scenario],

706+

env: {

707+

OPENCLAW_QA_REF: "scenario-ref",

708+

} as NodeJS.ProcessEnv,

709+

});

710+711+

expect(result.executionKind).toBe("script");

712+

expect(result.results[0]?.producerEvidence?.entries).toHaveLength(3);

713+

const evidence = validateQaEvidenceSummaryJson(

714+

JSON.parse(await fs.readFile(result.evidencePath, "utf8")),

715+

);

716+

expect(evidence.entries.map((entry) => entry.test.id)).toEqual([

717+

"ux-matrix.qa-lab.producer-artifact-fixture",

718+

"ux-matrix.control-ui.screenshot-artifact",

719+

"ux-matrix.cli.entrypoint-help",

720+

]);

721+

expect(

722+

evidence.entries.flatMap((entry) => entry.coverage.map((coverage) => coverage.id)),

723+

).toEqual(

724+

expect.arrayContaining([

725+

"qa.artifact-safety",

726+

"tools.evidence",

727+

"workspace.artifacts",

728+

"ui.control",

729+

"control-ui",

730+

"cli-entrypoint",

731+

"status-snapshots",

732+

]),

733+

);

734+

const artifactKinds = evidence.entries.flatMap(

735+

(entry) => entry.execution?.artifacts.map((artifact) => artifact.kind) ?? [],

736+

);

737+

expect(artifactKinds).toEqual(expect.arrayContaining(["html", "log"]));

738+

const fixtureEntry = evidence.entries.find(

739+

(entry) => entry.test.id === "ux-matrix.qa-lab.producer-artifact-fixture",

740+

);

741+

expect(fixtureEntry?.execution?.artifacts.map((artifact) => artifact.path)).toContain(

742+

path.join(

743+

outputDir,

744+

"ux-matrix-evidence-dashboard",

745+

"surfaces",

746+

"qa-lab",

747+

"stages",

748+

"producer-artifact-fixture",

749+

"producer-artifact-fixture.html",

750+

),

751+

);

752+

});

692753

});