Interface: AgentPlanScenario
Defined in: src/ai/agent-types.ts:95
A test scenario within an agent plan, containing ordered steps and assertions.
Intent
Group related test steps into a cohesive scenario for code generation.
Example
const scenario: AgentPlanScenario = {
name: 'Create BOM with Material and Plant',
steps: [step1, step2, step3],
assertions: ['Success message displayed', 'Record visible in table'],
controlsUsed: [createBtnRef, materialFieldRef],
};
Properties
assertions
readonlyassertions:string[]
Defined in: src/ai/agent-types.ts:101
Expected outcomes to verify after all steps complete.
controlsUsed
readonlycontrolsUsed:AgentPlanControlRef[]
Defined in: src/ai/agent-types.ts:103
Controls referenced by steps in this scenario.
name
readonlyname:string
Defined in: src/ai/agent-types.ts:97
Human-readable scenario name (used as test.step() label).
steps
readonlysteps:AgentPlanStep[]
Defined in: src/ai/agent-types.ts:99
Ordered list of steps in this scenario.