@@ -691,37 +691,35 @@ const ENTRIES: DryRunSampleEntry[] = [
691691 } ,
692692 } satisfies BatchRerunResponse ) ,
693693 // M3.3 piece-3 — GET /runs/{runId} (live status / long-poll).
694- // A terminal `passed` row is the most useful dry-run shape: agents see
695- // what a completed run looks like, and `--wait` terminates immediately.
696- // fix(2026-05-21): a duplicate failed-shape entry that appeared before
697- // this entry was removed; findSample first-match-wins was always
698- // returning status: "failed" for `test wait --dry-run`.
694+ // Use a terminal failed row with a concrete failed step so
695+ // `test steps --run-id <id> --dry-run` demonstrates the run-scoped
696+ // error + failedStepIndex mapping without needing live credentials.
699697 entry ( 'getRun' , 'GET' , '/runs/{runId}' , {
700698 runId : SAMPLE_RUN_ID ,
701- testId : SAMPLE_TEST_ID_PASSED ,
699+ testId : SAMPLE_TEST_ID_FAILED ,
702700 projectId : SAMPLE_PROJECT_ID ,
703701 userId : SAMPLE_USER_ID ,
704- status : 'passed ' ,
702+ status : 'failed ' ,
705703 source : 'cli' ,
706704 createdAt : '2026-05-15T19:32:00.000Z' ,
707705 startedAt : '2026-05-15T19:32:05.000Z' ,
708706 finishedAt : '2026-05-15T19:34:00.000Z' ,
709707 codeVersion : 'v1' ,
710708 targetUrl : SAMPLE_TARGET_URL ,
711709 createdFrom : null ,
712- failedStepIndex : null ,
713- failureKind : null ,
714- error : null ,
710+ failedStepIndex : 3 ,
711+ failureKind : 'assertion' ,
712+ error : 'Expected billing status badge to be visible, but it was not found.' ,
715713 videoUrl : null ,
716714 stepSummary : {
717- total : 8 ,
718- completed : 8 ,
719- passedCount : 8 ,
720- failedCount : 0 ,
715+ total : 3 ,
716+ completed : 3 ,
717+ passedCount : 2 ,
718+ failedCount : 1 ,
721719 } ,
722720 // Representative per-run steps so `test steps --run-id <id> --dry-run`
723721 // demonstrates real output instead of an empty list (the generic
724- // `/runs/{runId}` sample is also used by `test wait` , which ignores steps).
722+ // `/runs/{runId}` sample is also safe for wait flows , which ignore steps).
725723 steps : [
726724 {
727725 stepIndex : '0001' ,
@@ -745,6 +743,17 @@ const ENTRIES: DryRunSampleEntry[] = [
745743 htmlSnapshotUrl : null ,
746744 createdAt : '2026-05-15T19:32:20.000Z' ,
747745 } ,
746+ {
747+ stepIndex : '0003' ,
748+ type : 'assertion' ,
749+ action : 'assert_visible' ,
750+ status : 'failed' ,
751+ description : 'Billing status badge is visible' ,
752+ error : 'Expected billing status badge to be visible, but it was not found.' ,
753+ screenshotUrl : null ,
754+ htmlSnapshotUrl : null ,
755+ createdAt : '2026-05-15T19:32:30.000Z' ,
756+ } ,
748757 ] ,
749758 } satisfies RunResponse ) ,
750759] ;
0 commit comments