Skip to content

Commit 43f2b61

Browse files
committed
test(qa): keep image generation fixture on mock lane
1 parent 0ec12df commit 43f2b61

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

extensions/qa-lab/src/scenario-catalog.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ describe("qa scenario catalog", () => {
248248
});
249249
expect(readQaScenarioExecutionConfig(webSearch.id)).not.toHaveProperty("knownHarnessGap");
250250
expect(readQaScenarioExecutionConfig(imageGenerate.id)).toMatchObject({
251+
requiredProviderMode: "mock-openai",
251252
toolName: "image_generate",
252253
toolCoverage: {
253254
bucket: "openclaw-dynamic-integration",

qa/scenarios/runtime/tools/image-generate.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ scenario:
99
- tools.image-generate
1010
objective: Verify image_generate preserves arguments and result shape across OpenClaw and Codex.
1111
successCriteria:
12+
- Scenario is mock-openai only because live image generation uses async task lifecycle proof outside this direct failure-path fixture.
1213
- Effective tools expose image_generate after QA image-generation config is applied.
1314
- The mock provider plans exactly one happy-path image_generate call.
1415
- The mock provider plans one denied-input failure-path image_generate call.
@@ -22,6 +23,7 @@ scenario:
2223
kind: flow
2324
summary: Exercise the image_generate runtime tool family.
2425
config:
26+
requiredProviderMode: mock-openai
2527
toolName: image_generate
2628
ensureImageGeneration: true
2729
toolCoverage:
@@ -42,6 +44,9 @@ flow:
4244
steps:
4345
- name: exercises image_generate happy and failure paths
4446
actions:
47+
- assert:
48+
expr: "env.providerMode === config.requiredProviderMode"
49+
message: this seeded scenario is mock-openai only
4550
- call: runRuntimeToolFixture
4651
saveAs: result
4752
args:

0 commit comments

Comments
 (0)