@muggleai/works 5.32.0-staging.287 → 5.32.0-staging.288
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/dist/{chunk-TM6IZEKH.js → chunk-S3PUEFGM.js} +167 -84
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/.codex-mcp.json +1 -1
- package/dist/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/plugin/.cursor-plugin/plugin.json +1 -1
- package/dist/plugin/.mcp.json +1 -1
- package/dist/plugin/skills/_shared/dev-loop/publish.md +1 -1
- package/dist/plugin/skills/do/e2e-acceptance.md +6 -3
- package/dist/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +11 -4
- package/dist/release-manifest.json +3 -3
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-mcp.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/plugin/skills/_shared/dev-loop/publish.md +1 -1
- package/plugin/skills/do/e2e-acceptance.md +6 -3
- package/plugin/skills/muggle-pr-visual-walkthrough/e2e-report-assembly.md +11 -4
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": "muggleai",
|
|
10
10
|
"source": "./plugin",
|
|
11
11
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
12
|
-
"version": "5.32.0-staging.
|
|
12
|
+
"version": "5.32.0-staging.288"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -379,6 +379,104 @@ var PROGRESS_STATUS_LABELS = {
|
|
|
379
379
|
["passed" /* Passed */]: "\u2705 Passed",
|
|
380
380
|
["failed" /* Failed */]: "\u274C Failed"
|
|
381
381
|
};
|
|
382
|
+
var StepSchema = z.object({
|
|
383
|
+
stepIndex: z.number().int().nonnegative(),
|
|
384
|
+
action: z.string().min(1),
|
|
385
|
+
description: z.string().min(1).optional(),
|
|
386
|
+
screenshotUrl: z.string().url(),
|
|
387
|
+
afterScreenshotUrl: z.string().url().optional()
|
|
388
|
+
});
|
|
389
|
+
var RunSummaryVerdictStatusEnum = /* @__PURE__ */ ((RunSummaryVerdictStatusEnum2) => {
|
|
390
|
+
RunSummaryVerdictStatusEnum2["Success"] = "success";
|
|
391
|
+
RunSummaryVerdictStatusEnum2["BugDetected"] = "bug_detected";
|
|
392
|
+
RunSummaryVerdictStatusEnum2["GoalUnachievable"] = "goal_unachievable";
|
|
393
|
+
return RunSummaryVerdictStatusEnum2;
|
|
394
|
+
})(RunSummaryVerdictStatusEnum || {});
|
|
395
|
+
var RecordedRunSummarySchema = z.object({
|
|
396
|
+
isRecorded: z.literal(true),
|
|
397
|
+
headline: z.string().min(1),
|
|
398
|
+
status: z.nativeEnum(RunSummaryVerdictStatusEnum).optional(),
|
|
399
|
+
verdict: z.string().min(1).optional(),
|
|
400
|
+
blockingIssues: z.string().min(1).optional(),
|
|
401
|
+
screenshotUrl: z.string().url().optional()
|
|
402
|
+
});
|
|
403
|
+
var MissingRunSummarySchema = z.object({
|
|
404
|
+
isRecorded: z.literal(false)
|
|
405
|
+
});
|
|
406
|
+
var RunSummarySchema = z.discriminatedUnion("isRecorded", [RecordedRunSummarySchema, MissingRunSummarySchema]);
|
|
407
|
+
var TEST_SHORT_ID_FIELDS = {
|
|
408
|
+
testCaseShortId: z.string().min(1).optional(),
|
|
409
|
+
replayShortId: z.string().min(1).optional()
|
|
410
|
+
};
|
|
411
|
+
var RUN_SETTINGS_FIELDS = {
|
|
412
|
+
runSettingsId: z.string().min(1).optional(),
|
|
413
|
+
resolutionLabel: z.string().min(1).optional()
|
|
414
|
+
};
|
|
415
|
+
var PassedTestSchema = z.object({
|
|
416
|
+
name: z.string().min(1),
|
|
417
|
+
testCaseId: z.string().min(1),
|
|
418
|
+
testScriptId: z.string().min(1).optional(),
|
|
419
|
+
...TEST_SHORT_ID_FIELDS,
|
|
420
|
+
...RUN_SETTINGS_FIELDS,
|
|
421
|
+
runId: z.string().min(1),
|
|
422
|
+
viewUrl: z.string().url(),
|
|
423
|
+
status: z.literal("passed"),
|
|
424
|
+
steps: z.array(StepSchema),
|
|
425
|
+
useCaseName: z.string().min(1).optional(),
|
|
426
|
+
description: z.string().min(1).optional(),
|
|
427
|
+
endingScreenshotUrl: z.string().url().optional(),
|
|
428
|
+
endingScreenshotCaption: z.string().min(1).optional(),
|
|
429
|
+
runSummary: RunSummarySchema.optional()
|
|
430
|
+
});
|
|
431
|
+
var FailedTestSchema = z.object({
|
|
432
|
+
name: z.string().min(1),
|
|
433
|
+
testCaseId: z.string().min(1),
|
|
434
|
+
testScriptId: z.string().min(1).optional(),
|
|
435
|
+
...TEST_SHORT_ID_FIELDS,
|
|
436
|
+
...RUN_SETTINGS_FIELDS,
|
|
437
|
+
runId: z.string().min(1),
|
|
438
|
+
viewUrl: z.string().url(),
|
|
439
|
+
status: z.literal("failed"),
|
|
440
|
+
steps: z.array(StepSchema),
|
|
441
|
+
failureStepIndex: z.number().int().nonnegative(),
|
|
442
|
+
error: z.string().min(1),
|
|
443
|
+
// A run of the same test case on the PR's base the author says failed too; build-pr-section verifies it before
|
|
444
|
+
// the walkthrough credits it.
|
|
445
|
+
baselineRunId: z.string().min(1).optional(),
|
|
446
|
+
artifactsDir: z.string().min(1).optional(),
|
|
447
|
+
useCaseName: z.string().min(1).optional(),
|
|
448
|
+
description: z.string().min(1).optional(),
|
|
449
|
+
endingScreenshotUrl: z.string().url().optional(),
|
|
450
|
+
endingScreenshotCaption: z.string().min(1).optional(),
|
|
451
|
+
runSummary: RunSummarySchema.optional()
|
|
452
|
+
});
|
|
453
|
+
var InconclusiveTestSchema = z.object({
|
|
454
|
+
name: z.string().min(1),
|
|
455
|
+
testCaseId: z.string().min(1),
|
|
456
|
+
testScriptId: z.string().min(1).optional(),
|
|
457
|
+
...TEST_SHORT_ID_FIELDS,
|
|
458
|
+
...RUN_SETTINGS_FIELDS,
|
|
459
|
+
runId: z.string().min(1),
|
|
460
|
+
viewUrl: z.string().url(),
|
|
461
|
+
status: z.literal("inconclusive"),
|
|
462
|
+
steps: z.array(StepSchema),
|
|
463
|
+
reason: z.string().min(1),
|
|
464
|
+
artifactsDir: z.string().min(1).optional(),
|
|
465
|
+
useCaseName: z.string().min(1).optional(),
|
|
466
|
+
description: z.string().min(1).optional(),
|
|
467
|
+
endingScreenshotUrl: z.string().url().optional(),
|
|
468
|
+
endingScreenshotCaption: z.string().min(1).optional(),
|
|
469
|
+
runSummary: RunSummarySchema.optional()
|
|
470
|
+
});
|
|
471
|
+
var TestResultSchema = z.discriminatedUnion("status", [
|
|
472
|
+
PassedTestSchema,
|
|
473
|
+
FailedTestSchema,
|
|
474
|
+
InconclusiveTestSchema
|
|
475
|
+
]);
|
|
476
|
+
var E2eReportSchema = z.object({
|
|
477
|
+
projectId: z.string().min(1),
|
|
478
|
+
tests: z.array(TestResultSchema)
|
|
479
|
+
});
|
|
382
480
|
|
|
383
481
|
// src/cli/pr-section/constants.ts
|
|
384
482
|
var DETAIL_IMAGE_WIDTH = 720;
|
|
@@ -388,6 +486,13 @@ var STEP_LIST_HEAD_COUNT = 12;
|
|
|
388
486
|
var STEP_LIST_TAIL_COUNT = 8;
|
|
389
487
|
var STEP_ELEMENT_ID_SUFFIX = /\s*with element id (?:\[\d+\]|#\d+)/g;
|
|
390
488
|
var STEP_SCREENSHOT_MARKER = "\u{1F4F7}";
|
|
489
|
+
var RUN_SUMMARY_MARKER = "\u{1F3C1}";
|
|
490
|
+
var RUN_SUMMARY_VERDICT_STATUS_LABELS = {
|
|
491
|
+
["success" /* Success */]: "\u2705 Success",
|
|
492
|
+
["bug_detected" /* BugDetected */]: "\u274C Bug detected",
|
|
493
|
+
["goal_unachievable" /* GoalUnachievable */]: "\u26A0\uFE0F Goal unachievable"
|
|
494
|
+
};
|
|
495
|
+
var MISSING_RUN_SUMMARY_TEXT = "\u26A0\uFE0F **No summary step** \u2014 the run ended before it summarized its result; open the run on Muggle AI for its last state.";
|
|
391
496
|
var TEST_DETAILS_DIVIDER = "---";
|
|
392
497
|
var SHORT_ID_LABEL_SEPARATOR = " \xB7 ";
|
|
393
498
|
var TEST_DETAILS_ANCHOR_PREFIX = "muggle-test-";
|
|
@@ -598,83 +703,6 @@ function buildE2eResultRecord(latestTests) {
|
|
|
598
703
|
unpassed
|
|
599
704
|
};
|
|
600
705
|
}
|
|
601
|
-
var StepSchema = z.object({
|
|
602
|
-
stepIndex: z.number().int().nonnegative(),
|
|
603
|
-
action: z.string().min(1),
|
|
604
|
-
description: z.string().min(1).optional(),
|
|
605
|
-
screenshotUrl: z.string().url(),
|
|
606
|
-
afterScreenshotUrl: z.string().url().optional()
|
|
607
|
-
});
|
|
608
|
-
var TEST_SHORT_ID_FIELDS = {
|
|
609
|
-
testCaseShortId: z.string().min(1).optional(),
|
|
610
|
-
replayShortId: z.string().min(1).optional()
|
|
611
|
-
};
|
|
612
|
-
var RUN_SETTINGS_FIELDS = {
|
|
613
|
-
runSettingsId: z.string().min(1).optional(),
|
|
614
|
-
resolutionLabel: z.string().min(1).optional()
|
|
615
|
-
};
|
|
616
|
-
var PassedTestSchema = z.object({
|
|
617
|
-
name: z.string().min(1),
|
|
618
|
-
testCaseId: z.string().min(1),
|
|
619
|
-
testScriptId: z.string().min(1).optional(),
|
|
620
|
-
...TEST_SHORT_ID_FIELDS,
|
|
621
|
-
...RUN_SETTINGS_FIELDS,
|
|
622
|
-
runId: z.string().min(1),
|
|
623
|
-
viewUrl: z.string().url(),
|
|
624
|
-
status: z.literal("passed"),
|
|
625
|
-
steps: z.array(StepSchema),
|
|
626
|
-
useCaseName: z.string().min(1).optional(),
|
|
627
|
-
description: z.string().min(1).optional(),
|
|
628
|
-
endingScreenshotUrl: z.string().url().optional(),
|
|
629
|
-
endingScreenshotCaption: z.string().min(1).optional()
|
|
630
|
-
});
|
|
631
|
-
var FailedTestSchema = z.object({
|
|
632
|
-
name: z.string().min(1),
|
|
633
|
-
testCaseId: z.string().min(1),
|
|
634
|
-
testScriptId: z.string().min(1).optional(),
|
|
635
|
-
...TEST_SHORT_ID_FIELDS,
|
|
636
|
-
...RUN_SETTINGS_FIELDS,
|
|
637
|
-
runId: z.string().min(1),
|
|
638
|
-
viewUrl: z.string().url(),
|
|
639
|
-
status: z.literal("failed"),
|
|
640
|
-
steps: z.array(StepSchema),
|
|
641
|
-
failureStepIndex: z.number().int().nonnegative(),
|
|
642
|
-
error: z.string().min(1),
|
|
643
|
-
// A run of the same test case on the PR's base the author says failed too; build-pr-section verifies it before
|
|
644
|
-
// the walkthrough credits it.
|
|
645
|
-
baselineRunId: z.string().min(1).optional(),
|
|
646
|
-
artifactsDir: z.string().min(1).optional(),
|
|
647
|
-
useCaseName: z.string().min(1).optional(),
|
|
648
|
-
description: z.string().min(1).optional(),
|
|
649
|
-
endingScreenshotUrl: z.string().url().optional(),
|
|
650
|
-
endingScreenshotCaption: z.string().min(1).optional()
|
|
651
|
-
});
|
|
652
|
-
var InconclusiveTestSchema = z.object({
|
|
653
|
-
name: z.string().min(1),
|
|
654
|
-
testCaseId: z.string().min(1),
|
|
655
|
-
testScriptId: z.string().min(1).optional(),
|
|
656
|
-
...TEST_SHORT_ID_FIELDS,
|
|
657
|
-
...RUN_SETTINGS_FIELDS,
|
|
658
|
-
runId: z.string().min(1),
|
|
659
|
-
viewUrl: z.string().url(),
|
|
660
|
-
status: z.literal("inconclusive"),
|
|
661
|
-
steps: z.array(StepSchema),
|
|
662
|
-
reason: z.string().min(1),
|
|
663
|
-
artifactsDir: z.string().min(1).optional(),
|
|
664
|
-
useCaseName: z.string().min(1).optional(),
|
|
665
|
-
description: z.string().min(1).optional(),
|
|
666
|
-
endingScreenshotUrl: z.string().url().optional(),
|
|
667
|
-
endingScreenshotCaption: z.string().min(1).optional()
|
|
668
|
-
});
|
|
669
|
-
var TestResultSchema = z.discriminatedUnion("status", [
|
|
670
|
-
PassedTestSchema,
|
|
671
|
-
FailedTestSchema,
|
|
672
|
-
InconclusiveTestSchema
|
|
673
|
-
]);
|
|
674
|
-
var E2eReportSchema = z.object({
|
|
675
|
-
projectId: z.string().min(1),
|
|
676
|
-
tests: z.array(TestResultSchema)
|
|
677
|
-
});
|
|
678
706
|
|
|
679
707
|
// src/cli/pr-section/render.ts
|
|
680
708
|
function walkthroughEntryKey(identity) {
|
|
@@ -758,9 +786,10 @@ function defaultEndingCaption(test) {
|
|
|
758
786
|
return "Final page after the test completed";
|
|
759
787
|
}
|
|
760
788
|
function endingFrame(test) {
|
|
761
|
-
|
|
789
|
+
const explicitUrl = test.endingScreenshotUrl ?? recordedRunSummary(test.runSummary)?.screenshotUrl;
|
|
790
|
+
if (explicitUrl) {
|
|
762
791
|
return {
|
|
763
|
-
url:
|
|
792
|
+
url: explicitUrl,
|
|
764
793
|
caption: test.endingScreenshotCaption ?? defaultEndingCaption(test)
|
|
765
794
|
};
|
|
766
795
|
}
|
|
@@ -773,11 +802,17 @@ function endingFrame(test) {
|
|
|
773
802
|
caption: test.endingScreenshotCaption ?? defaultEndingCaption(test)
|
|
774
803
|
};
|
|
775
804
|
}
|
|
805
|
+
function recordedRunSummary(runSummary) {
|
|
806
|
+
return runSummary?.isRecorded ? runSummary : null;
|
|
807
|
+
}
|
|
776
808
|
function screenshotImage(url, displayWidth, alt) {
|
|
777
809
|
return `<img src="${url}" width="${displayWidth}" alt="${escapeHtmlAttribute(alt)}">`;
|
|
778
810
|
}
|
|
811
|
+
function singleLine(text) {
|
|
812
|
+
return text.replace(/\s*\n\s*/g, " ");
|
|
813
|
+
}
|
|
779
814
|
function tableCell(s) {
|
|
780
|
-
return
|
|
815
|
+
return singleLine(s).replace(/\|/g, "\\|");
|
|
781
816
|
}
|
|
782
817
|
function stepText(step) {
|
|
783
818
|
return escapeHtml((step.description ?? step.action).replace(STEP_ELEMENT_ID_SUFFIX, ""));
|
|
@@ -884,7 +919,7 @@ function renderTestDetails(entry, testNumber, screenshotDetail = "before-and-aft
|
|
|
884
919
|
const { test } = entry;
|
|
885
920
|
const lines = [`<a name="${testAnchor(test)}"></a>`, "", `#### ${statusEmoji(test)} ${testNumber}. ${testLabel(test)}`, ""];
|
|
886
921
|
if (test.description && !isSameText(test.description, test.name)) {
|
|
887
|
-
lines.push(`_${test.description
|
|
922
|
+
lines.push(`_${singleLine(test.description)}_`, "");
|
|
888
923
|
}
|
|
889
924
|
lines.push(...renderResultTable(entry));
|
|
890
925
|
const steps = renderSteps(test, screenshotDetail);
|
|
@@ -905,6 +940,9 @@ function testAnchor(identity) {
|
|
|
905
940
|
}
|
|
906
941
|
function stepsToggleLabel(test, screenshotDetail) {
|
|
907
942
|
const count = test.steps.length;
|
|
943
|
+
if (count === 0) {
|
|
944
|
+
return "<kbd>Show the run summary</kbd>";
|
|
945
|
+
}
|
|
908
946
|
const stepCount = `${count} ${count === 1 ? "step" : "steps"}`;
|
|
909
947
|
return screenshotDetail === "none" /* None */ ? `<kbd>Show ${stepCount}</kbd>` : `<kbd>Show ${stepCount} and screenshots</kbd>`;
|
|
910
948
|
}
|
|
@@ -933,9 +971,43 @@ function renderStepScreenshots(step, position, screenshotDetail) {
|
|
|
933
971
|
`| ${screenshotImage(step.screenshotUrl, STEP_PAIR_IMAGE_WIDTH, `Step ${position} before`)} | ${screenshotImage(step.afterScreenshotUrl, STEP_PAIR_IMAGE_WIDTH, `Step ${position} after`)} |`
|
|
934
972
|
];
|
|
935
973
|
}
|
|
974
|
+
function runSummaryLabel(runSummary) {
|
|
975
|
+
const statusLabel = runSummary.status ? `${RUN_SUMMARY_VERDICT_STATUS_LABELS[runSummary.status]} \u2014 ` : "";
|
|
976
|
+
return `${RUN_SUMMARY_MARKER} Summary \xB7 ${statusLabel}${escapeHtml(singleLine(runSummary.headline))}`;
|
|
977
|
+
}
|
|
978
|
+
function runSummaryVerdictLines(runSummary) {
|
|
979
|
+
const labelledTexts = [
|
|
980
|
+
["Verdict", runSummary.verdict],
|
|
981
|
+
["Blocking issues", runSummary.blockingIssues]
|
|
982
|
+
];
|
|
983
|
+
return labelledTexts.filter((labelled) => Boolean(labelled[1])).map(([label, text]) => `**${label}:** ${escapeHtml(singleLine(text))}`);
|
|
984
|
+
}
|
|
985
|
+
function renderRunSummaryRow(runSummary, screenshotDetail) {
|
|
986
|
+
if (!runSummary) {
|
|
987
|
+
return null;
|
|
988
|
+
}
|
|
989
|
+
const isTextOnly = screenshotDetail === "none" /* None */;
|
|
990
|
+
if (!runSummary.isRecorded) {
|
|
991
|
+
return isTextOnly ? `- ${MISSING_RUN_SUMMARY_TEXT}` : `
|
|
992
|
+
${MISSING_RUN_SUMMARY_TEXT}`;
|
|
993
|
+
}
|
|
994
|
+
const verdictLines = runSummaryVerdictLines(runSummary);
|
|
995
|
+
if (isTextOnly) {
|
|
996
|
+
return [`- ${runSummaryLabel(runSummary)}`, ...verdictLines.map((line) => ` - ${line}`)].join("\n");
|
|
997
|
+
}
|
|
998
|
+
const blocks = runSummary.screenshotUrl ? [...verdictLines, screenshotImage(runSummary.screenshotUrl, STEP_IMAGE_WIDTH, "Run summary")] : verdictLines;
|
|
999
|
+
if (blocks.length === 0) {
|
|
1000
|
+
return `
|
|
1001
|
+
${runSummaryLabel(runSummary)}`;
|
|
1002
|
+
}
|
|
1003
|
+
const body = blocks.flatMap((block, i) => i === 0 ? [block] : ["", block]);
|
|
1004
|
+
return [`<details><summary>${runSummaryLabel(runSummary)}</summary>`, ...indented(body), "</details>"].join("\n");
|
|
1005
|
+
}
|
|
936
1006
|
function renderSteps(test, screenshotDetail) {
|
|
937
1007
|
const { steps } = test;
|
|
938
|
-
|
|
1008
|
+
const summaryRow = renderRunSummaryRow(test.runSummary, screenshotDetail);
|
|
1009
|
+
const summaryRows = summaryRow ? [summaryRow] : [];
|
|
1010
|
+
if (steps.length === 0 && summaryRows.length === 0) {
|
|
939
1011
|
return null;
|
|
940
1012
|
}
|
|
941
1013
|
const isTextOnly = screenshotDetail === "none" /* None */;
|
|
@@ -946,7 +1018,7 @@ function renderSteps(test, screenshotDetail) {
|
|
|
946
1018
|
].join("\n");
|
|
947
1019
|
const heading = isTextOnly ? ["**Steps**", ""] : ["**Steps** \u2014 click a step to see its screenshots", ""];
|
|
948
1020
|
if (steps.length <= STEP_LIST_ELISION_THRESHOLD) {
|
|
949
|
-
return [...heading, ...steps.map((step, i) => collapsible(step, i + 1))];
|
|
1021
|
+
return [...heading, ...steps.map((step, i) => collapsible(step, i + 1)), ...summaryRows];
|
|
950
1022
|
}
|
|
951
1023
|
const tailStart = steps.length - STEP_LIST_TAIL_COUNT;
|
|
952
1024
|
const hidden = tailStart - STEP_LIST_HEAD_COUNT;
|
|
@@ -956,7 +1028,8 @@ function renderSteps(test, screenshotDetail) {
|
|
|
956
1028
|
"",
|
|
957
1029
|
`_\u2026 ${hidden} more ${hidden === 1 ? "step" : "steps"} \u2014 ${dashboardLink(test)}_`,
|
|
958
1030
|
"",
|
|
959
|
-
...steps.slice(tailStart).map((step, i) => collapsible(step, tailStart + i + 1))
|
|
1031
|
+
...steps.slice(tailStart).map((step, i) => collapsible(step, tailStart + i + 1)),
|
|
1032
|
+
...summaryRows
|
|
960
1033
|
];
|
|
961
1034
|
}
|
|
962
1035
|
function renderResultTable(entry) {
|
|
@@ -1106,6 +1179,10 @@ function collectGsUrls(report) {
|
|
|
1106
1179
|
if (test.endingScreenshotUrl && isGsUrl(test.endingScreenshotUrl)) {
|
|
1107
1180
|
seen.add(test.endingScreenshotUrl);
|
|
1108
1181
|
}
|
|
1182
|
+
const runSummaryScreenshotUrl = test.runSummary?.isRecorded ? test.runSummary.screenshotUrl : void 0;
|
|
1183
|
+
if (runSummaryScreenshotUrl && isGsUrl(runSummaryScreenshotUrl)) {
|
|
1184
|
+
seen.add(runSummaryScreenshotUrl);
|
|
1185
|
+
}
|
|
1109
1186
|
}
|
|
1110
1187
|
return Array.from(seen);
|
|
1111
1188
|
}
|
|
@@ -1156,6 +1233,12 @@ function remapTest(test, urlMap) {
|
|
|
1156
1233
|
remapped.endingScreenshotUrl = resolved;
|
|
1157
1234
|
}
|
|
1158
1235
|
}
|
|
1236
|
+
if (test.runSummary?.isRecorded && test.runSummary.screenshotUrl) {
|
|
1237
|
+
const resolved = urlMap.get(test.runSummary.screenshotUrl);
|
|
1238
|
+
if (resolved) {
|
|
1239
|
+
remapped.runSummary = { ...test.runSummary, screenshotUrl: resolved };
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1159
1242
|
return remapped;
|
|
1160
1243
|
}
|
|
1161
1244
|
async function resolveGsScreenshotUrls(report, opts) {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-
|
|
1
|
+
export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-S3PUEFGM.js';
|
|
2
2
|
export { createChildLogger, e2e_exports as e2e, getConfig, getLocalQaTools, getLogger, getQaTools, local_exports as localQa, mcp_exports as mcp, e2e_exports as qa, src_exports as shared } from './chunk-AEJM2CBK.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
4
|
-
"version": "5.32.0-staging.
|
|
4
|
+
"version": "5.32.0-staging.288",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.32.0-staging.
|
|
3
|
+
"version": "5.32.0-staging.288",
|
|
4
4
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"displayName": "Muggle AI",
|
|
4
4
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
5
|
-
"version": "5.32.0-staging.
|
|
5
|
+
"version": "5.32.0-staging.288",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -6,4 +6,4 @@ The studio publishes every completed run — pass or fail — to the cloud durin
|
|
|
6
6
|
|
|
7
7
|
## Screenshots
|
|
8
8
|
|
|
9
|
-
Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. `afterScreenshotUrl` is the page after the step acted: the next step's `operation.screenshotUrl` among steps that have one, and for the last such step the `summaryStep.operation.screenshotUrl` (rule and skipped operations in [`../../muggle-pr-visual-walkthrough/e2e-report-assembly.md`](../../muggle-pr-visual-walkthrough/e2e-report-assembly.md)). When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
|
|
9
|
+
Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. `afterScreenshotUrl` is the page after the step acted: the next step's `operation.screenshotUrl` among steps that have one, and for the last such step the `summaryStep.operation.screenshotUrl` (rule and skipped operations in [`../../muggle-pr-visual-walkthrough/e2e-report-assembly.md`](../../muggle-pr-visual-walkthrough/e2e-report-assembly.md)). When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. From the same response retain the run's closing halt step, `summaryStep`, as `runSummary` — or `{ isRecorded: false }` when the script has none — mapped per the `runSummary` rule in the same guide. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
|
|
@@ -168,7 +168,8 @@ For each test case:
|
|
|
168
168
|
- testScriptId: `<id>`
|
|
169
169
|
- runId: `<id>`
|
|
170
170
|
- viewUrl: `<url>`
|
|
171
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
|
|
171
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]`
|
|
172
|
+
- runSummary: the run's closing halt step, `{ isRecorded: true, headline, status, verdict, blockingIssues, screenshotUrl }` or `{ isRecorded: false }` when the run has no `summaryStep` (mapping in `../muggle-pr-visual-walkthrough/e2e-report-assembly.md`)
|
|
172
173
|
|
|
173
174
|
**Failed:** (count)
|
|
174
175
|
- (test case name):
|
|
@@ -180,7 +181,8 @@ For each test case:
|
|
|
180
181
|
- viewUrl: `<url>`
|
|
181
182
|
- failureStepIndex: `<index>`
|
|
182
183
|
- error: `<message>`
|
|
183
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
|
|
184
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]`
|
|
185
|
+
- runSummary: as for Passed
|
|
184
186
|
- artifactsDir: `<path>` (for local debugging)
|
|
185
187
|
|
|
186
188
|
**Inconclusive:** (count) — use for runs that couldn't yield a pass/fail signal: no replayable script, environment precondition unmet, prerequisites unmet (Step 3.5), infra error, agent stalled on auth/cookie banner before reaching the assertion, missing secrets. The product is **not** implicated — that's `failed`, not `inconclusive`.
|
|
@@ -191,7 +193,8 @@ For each test case:
|
|
|
191
193
|
- runId: `<id>` (synthesize a UUID if no run started)
|
|
192
194
|
- viewUrl: `<url>` (project-level run-results fallback when no specific run URL exists)
|
|
193
195
|
- reason: `<one short sentence>`
|
|
194
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]` (empty only when the run produced no steps)
|
|
196
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]` (empty only when the run produced no steps)
|
|
197
|
+
- runSummary: as for Passed
|
|
195
198
|
|
|
196
199
|
**Deliverables:** (count) — one entry per deliverable check from Step 5, in the report-entry shape of [`../_shared/deliverable-categories.md`](../_shared/deliverable-categories.md#report-entry). Omitted when the scope planned none.
|
|
197
200
|
|
|
@@ -32,7 +32,11 @@ For each result:
|
|
|
32
32
|
2. `viewUrl` — from the run result (deep-links to the specific run).
|
|
33
33
|
3. `status` — from `muggle-local-run-result-get`.
|
|
34
34
|
4. If failed: also capture `failureStepIndex`, `error`, `artifactsDir` from the run result.
|
|
35
|
-
5.
|
|
35
|
+
5. `runSummary` — the run's closing halt step, which the script stores as `summaryStep` apart from `steps[]` (replays drop the recorded halt from `steps[]` too). Set it on every entry whose action script you fetched, passed, failed and inconclusive alike; the walkthrough renders it as the row closing the step list.
|
|
36
|
+
- `summaryStep` present → `{ isRecorded: true, headline, status, verdict, blockingIssues, screenshotUrl }`: `headline` is `structuredSummary.summaryHeadline`, else `briefExplanation`; `status` is `structuredSummary.status` (`success` · `bug_detected` · `goal_unachievable`); `verdict` and `blockingIssues` are the text after `Verdict:` and `Blocking Issues:` in `comment`; `screenshotUrl` is `operation.screenshotUrl`. Omit any of the last four the step does not carry.
|
|
37
|
+
- `summaryStep` absent → `{ isRecorded: false }`: the run died before summarizing, and the walkthrough says so on that test.
|
|
38
|
+
- Omit `runSummary` only when no action script exists to read — a run that never started or the last-resort stub below.
|
|
39
|
+
6. If the caller hands over a `baselineRunId` for a failed entry — a run of the same test case against the base that failed too — set it on the entry. `build-pr-section` credits it only after checking the run itself: same test case, failed, same runSettings record, and a stack that served a base commit between the PR's fork point and the base tip. A credited failure reads "also fails on base" and stops holding the walkthrough check red; a refused one is named on stderr and stays a plain failure. Pass `--base <branch>` when the PR does not target the remote's default branch.
|
|
36
40
|
|
|
37
41
|
## Last-resort: no cloud refs on the run result
|
|
38
42
|
|
|
@@ -70,7 +74,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
70
74
|
"replayShortId": "<run shortId, when it has one>",
|
|
71
75
|
"viewUrl": "<viewUrl from run result>",
|
|
72
76
|
"status": "passed",
|
|
73
|
-
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Accept all' to dismiss the cookie consent dialog.", "screenshotUrl": "..." }]
|
|
77
|
+
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Accept all' to dismiss the cookie consent dialog.", "screenshotUrl": "..." }],
|
|
78
|
+
"runSummary": { "isRecorded": true, "headline": "<summaryHeadline>", "status": "success", "verdict": "<Verdict: text>", "blockingIssues": "<Blocking Issues: text>", "screenshotUrl": "<summaryStep.operation.screenshotUrl>" }
|
|
74
79
|
},
|
|
75
80
|
{
|
|
76
81
|
"name": "<failed test case title>",
|
|
@@ -82,7 +87,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
82
87
|
"status": "failed",
|
|
83
88
|
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Sign in' to open the login form.", "screenshotUrl": "..." }],
|
|
84
89
|
"failureStepIndex": 0,
|
|
85
|
-
"error": "<error message from run result>"
|
|
90
|
+
"error": "<error message from run result>",
|
|
91
|
+
"runSummary": { "isRecorded": true, "headline": "<summaryHeadline>", "status": "bug_detected", "verdict": "<Verdict: text>", "blockingIssues": "<Blocking Issues: text>", "screenshotUrl": "..." }
|
|
86
92
|
},
|
|
87
93
|
{
|
|
88
94
|
"name": "<inconclusive test case title>",
|
|
@@ -93,7 +99,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
93
99
|
"viewUrl": "<viewUrl from run result, or project-level fallback URL>",
|
|
94
100
|
"status": "inconclusive",
|
|
95
101
|
"steps": [{ "stepIndex": 0, "action": "navigate", "description": "Workflow started at the app's URL.", "screenshotUrl": "..." }],
|
|
96
|
-
"reason": "<one short sentence: why neither pass nor fail applies>"
|
|
102
|
+
"reason": "<one short sentence: why neither pass nor fail applies>",
|
|
103
|
+
"runSummary": { "isRecorded": false }
|
|
97
104
|
}
|
|
98
105
|
]
|
|
99
106
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"release": "5.26.0",
|
|
3
|
-
"buildId": "run-
|
|
4
|
-
"commitSha": "
|
|
5
|
-
"buildTime": "2026-11-03T22:
|
|
3
|
+
"buildId": "run-288-1",
|
|
4
|
+
"commitSha": "bb6cfd27662fb360c92de3184cd460bdb424dfd4",
|
|
5
|
+
"buildTime": "2026-11-03T22:34:45Z",
|
|
6
6
|
"serviceName": "muggle-ai-works-mcp"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muggleai/works",
|
|
3
3
|
"mcpName": "io.github.multiplex-ai/muggle",
|
|
4
|
-
"version": "5.32.0-staging.
|
|
4
|
+
"version": "5.32.0-staging.288",
|
|
5
5
|
"description": "13 years of Microsoft hyperscale engineering, packaged as a harness for your AI coding agent.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
4
|
-
"version": "5.32.0-staging.
|
|
4
|
+
"version": "5.32.0-staging.288",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
7
7
|
"email": "support@muggle-ai.com"
|
package/plugin/.codex-mcp.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muggle",
|
|
3
|
-
"version": "5.32.0-staging.
|
|
3
|
+
"version": "5.32.0-staging.288",
|
|
4
4
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Muggle AI",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "muggle",
|
|
3
3
|
"displayName": "Muggle AI",
|
|
4
4
|
"description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
|
|
5
|
-
"version": "5.32.0-staging.
|
|
5
|
+
"version": "5.32.0-staging.288",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Muggle AI",
|
|
8
8
|
"email": "support@muggle-ai.com"
|
package/plugin/.mcp.json
CHANGED
|
@@ -6,4 +6,4 @@ The studio publishes every completed run — pass or fail — to the cloud durin
|
|
|
6
6
|
|
|
7
7
|
## Screenshots
|
|
8
8
|
|
|
9
|
-
Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. `afterScreenshotUrl` is the page after the step acted: the next step's `operation.screenshotUrl` among steps that have one, and for the last such step the `summaryStep.operation.screenshotUrl` (rule and skipped operations in [`../../muggle-pr-visual-walkthrough/e2e-report-assembly.md`](../../muggle-pr-visual-walkthrough/e2e-report-assembly.md)). When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
|
|
9
|
+
Per run, `muggle-remote-test-script-get` with the `cloudTestScriptId` from the run result → per step `operation.screenshotUrl`, `operation.action` and `briefExplanation`. Retain `{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }`, with `description` taken from `briefExplanation` — `action` is only the operation verb, and the description is what the walkthrough shows a reviewer. `afterScreenshotUrl` is the page after the step acted: the next step's `operation.screenshotUrl` among steps that have one, and for the last such step the `summaryStep.operation.screenshotUrl` (rule and skipped operations in [`../../muggle-pr-visual-walkthrough/e2e-report-assembly.md`](../../muggle-pr-visual-walkthrough/e2e-report-assembly.md)). When `cloudTestScriptId` is absent — every failed generation, per above — call `muggle-remote-action-script-get` with `cloudActionScriptId` instead; it returns the same `steps[]` shape, so a non-passing run keeps its per-step screenshots rather than collapsing to a single ending frame. From the same response retain the run's closing halt step, `summaryStep`, as `runSummary` — or `{ isRecorded: false }` when the script has none — mapped per the `runSummary` rule in the same guide. Batch in parallel. These feed the `E2eReport` consumed by [`../../muggle-pr-visual-walkthrough/SKILL.md`](../../muggle-pr-visual-walkthrough/SKILL.md) — the dev loop does not post to the PR.
|
|
@@ -168,7 +168,8 @@ For each test case:
|
|
|
168
168
|
- testScriptId: `<id>`
|
|
169
169
|
- runId: `<id>`
|
|
170
170
|
- viewUrl: `<url>`
|
|
171
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
|
|
171
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]`
|
|
172
|
+
- runSummary: the run's closing halt step, `{ isRecorded: true, headline, status, verdict, blockingIssues, screenshotUrl }` or `{ isRecorded: false }` when the run has no `summaryStep` (mapping in `../muggle-pr-visual-walkthrough/e2e-report-assembly.md`)
|
|
172
173
|
|
|
173
174
|
**Failed:** (count)
|
|
174
175
|
- (test case name):
|
|
@@ -180,7 +181,8 @@ For each test case:
|
|
|
180
181
|
- viewUrl: `<url>`
|
|
181
182
|
- failureStepIndex: `<index>`
|
|
182
183
|
- error: `<message>`
|
|
183
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]`
|
|
184
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]`
|
|
185
|
+
- runSummary: as for Passed
|
|
184
186
|
- artifactsDir: `<path>` (for local debugging)
|
|
185
187
|
|
|
186
188
|
**Inconclusive:** (count) — use for runs that couldn't yield a pass/fail signal: no replayable script, environment precondition unmet, prerequisites unmet (Step 3.5), infra error, agent stalled on auth/cookie banner before reaching the assertion, missing secrets. The product is **not** implicated — that's `failed`, not `inconclusive`.
|
|
@@ -191,7 +193,8 @@ For each test case:
|
|
|
191
193
|
- runId: `<id>` (synthesize a UUID if no run started)
|
|
192
194
|
- viewUrl: `<url>` (project-level run-results fallback when no specific run URL exists)
|
|
193
195
|
- reason: `<one short sentence>`
|
|
194
|
-
- steps: `[{ stepIndex, action, description, screenshotUrl }, ...]` (empty only when the run produced no steps)
|
|
196
|
+
- steps: `[{ stepIndex, action, description, screenshotUrl, afterScreenshotUrl }, ...]` (empty only when the run produced no steps)
|
|
197
|
+
- runSummary: as for Passed
|
|
195
198
|
|
|
196
199
|
**Deliverables:** (count) — one entry per deliverable check from Step 5, in the report-entry shape of [`../_shared/deliverable-categories.md`](../_shared/deliverable-categories.md#report-entry). Omitted when the scope planned none.
|
|
197
200
|
|
|
@@ -32,7 +32,11 @@ For each result:
|
|
|
32
32
|
2. `viewUrl` — from the run result (deep-links to the specific run).
|
|
33
33
|
3. `status` — from `muggle-local-run-result-get`.
|
|
34
34
|
4. If failed: also capture `failureStepIndex`, `error`, `artifactsDir` from the run result.
|
|
35
|
-
5.
|
|
35
|
+
5. `runSummary` — the run's closing halt step, which the script stores as `summaryStep` apart from `steps[]` (replays drop the recorded halt from `steps[]` too). Set it on every entry whose action script you fetched, passed, failed and inconclusive alike; the walkthrough renders it as the row closing the step list.
|
|
36
|
+
- `summaryStep` present → `{ isRecorded: true, headline, status, verdict, blockingIssues, screenshotUrl }`: `headline` is `structuredSummary.summaryHeadline`, else `briefExplanation`; `status` is `structuredSummary.status` (`success` · `bug_detected` · `goal_unachievable`); `verdict` and `blockingIssues` are the text after `Verdict:` and `Blocking Issues:` in `comment`; `screenshotUrl` is `operation.screenshotUrl`. Omit any of the last four the step does not carry.
|
|
37
|
+
- `summaryStep` absent → `{ isRecorded: false }`: the run died before summarizing, and the walkthrough says so on that test.
|
|
38
|
+
- Omit `runSummary` only when no action script exists to read — a run that never started or the last-resort stub below.
|
|
39
|
+
6. If the caller hands over a `baselineRunId` for a failed entry — a run of the same test case against the base that failed too — set it on the entry. `build-pr-section` credits it only after checking the run itself: same test case, failed, same runSettings record, and a stack that served a base commit between the PR's fork point and the base tip. A credited failure reads "also fails on base" and stops holding the walkthrough check red; a refused one is named on stderr and stays a plain failure. Pass `--base <branch>` when the PR does not target the remote's default branch.
|
|
36
40
|
|
|
37
41
|
## Last-resort: no cloud refs on the run result
|
|
38
42
|
|
|
@@ -70,7 +74,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
70
74
|
"replayShortId": "<run shortId, when it has one>",
|
|
71
75
|
"viewUrl": "<viewUrl from run result>",
|
|
72
76
|
"status": "passed",
|
|
73
|
-
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Accept all' to dismiss the cookie consent dialog.", "screenshotUrl": "..." }]
|
|
77
|
+
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Accept all' to dismiss the cookie consent dialog.", "screenshotUrl": "..." }],
|
|
78
|
+
"runSummary": { "isRecorded": true, "headline": "<summaryHeadline>", "status": "success", "verdict": "<Verdict: text>", "blockingIssues": "<Blocking Issues: text>", "screenshotUrl": "<summaryStep.operation.screenshotUrl>" }
|
|
74
79
|
},
|
|
75
80
|
{
|
|
76
81
|
"name": "<failed test case title>",
|
|
@@ -82,7 +87,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
82
87
|
"status": "failed",
|
|
83
88
|
"steps": [{ "stepIndex": 0, "action": "click", "description": "Click 'Sign in' to open the login form.", "screenshotUrl": "..." }],
|
|
84
89
|
"failureStepIndex": 0,
|
|
85
|
-
"error": "<error message from run result>"
|
|
90
|
+
"error": "<error message from run result>",
|
|
91
|
+
"runSummary": { "isRecorded": true, "headline": "<summaryHeadline>", "status": "bug_detected", "verdict": "<Verdict: text>", "blockingIssues": "<Blocking Issues: text>", "screenshotUrl": "..." }
|
|
86
92
|
},
|
|
87
93
|
{
|
|
88
94
|
"name": "<inconclusive test case title>",
|
|
@@ -93,7 +99,8 @@ If called from `muggle-do`: `e2e-acceptance.md` already produces this shape, eac
|
|
|
93
99
|
"viewUrl": "<viewUrl from run result, or project-level fallback URL>",
|
|
94
100
|
"status": "inconclusive",
|
|
95
101
|
"steps": [{ "stepIndex": 0, "action": "navigate", "description": "Workflow started at the app's URL.", "screenshotUrl": "..." }],
|
|
96
|
-
"reason": "<one short sentence: why neither pass nor fail applies>"
|
|
102
|
+
"reason": "<one short sentence: why neither pass nor fail applies>",
|
|
103
|
+
"runSummary": { "isRecorded": false }
|
|
97
104
|
}
|
|
98
105
|
]
|
|
99
106
|
}
|