@@ -10,6 +10,7 @@ const QA_LAB_RUNTIME_API = "extensions/qa-lab/runtime-api.ts";
1010const PACKAGE_JSON = "package.json" ;
1111const WORKFLOW = ".github/workflows/mantis-telegram-desktop-proof.yml" ;
1212const LIVE_WORKFLOW = ".github/workflows/mantis-telegram-live.yml" ;
13+ const SCENARIO_WORKFLOW = ".github/workflows/mantis-scenario.yml" ;
1314const PROMPT = ".github/codex/prompts/mantis-telegram-desktop-proof.md" ;
1415const TELEGRAM_PROOF_SKILL = ".agents/skills/telegram-crabbox-e2e-proof/SKILL.md" ;
1516const DOCS = [ "docs/help/testing.md" , "docs/concepts/qa-e2e-automation.md" ] ;
@@ -77,6 +78,17 @@ function filesUnder(root: string): string[] {
7778}
7879
7980describe ( "Mantis Telegram Desktop proof workflow" , ( ) => {
81+ it ( "dispatches from the scenario workflow using the proof workflow input contract" , ( ) => {
82+ const run = jobStep ( SCENARIO_WORKFLOW , "dispatch" , "Dispatch scenario" ) . run ?? "" ;
83+ const branch = run . match ( / t e l e g r a m - d e s k t o p - p r o o f \) ( [ \s \S ] * ?) \n \s * ; ; / ) ?. [ 1 ] ;
84+
85+ expect ( branch ) . toBeDefined ( ) ;
86+ expect ( branch ) . toContain ( 'if [[ -z "${PR_NUMBER:-}" ]]' ) ;
87+ expect ( branch ) . toContain ( '-f "pr_number=${PR_NUMBER}"' ) ;
88+ expect ( branch ) . not . toContain ( "baseline_ref=" ) ;
89+ expect ( branch ) . not . toContain ( "candidate_ref=" ) ;
90+ } ) ;
91+
8092 it ( "uses repository pnpm setup defaults" , ( ) => {
8193 const workflow = parse ( readFileSync ( WORKFLOW , "utf8" ) ) as Workflow ;
8294 const liveWorkflow = parse ( readFileSync ( LIVE_WORKFLOW , "utf8" ) ) as Workflow ;
0 commit comments