executable-stories-react 0.19.0 → 0.20.0
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/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -15
- package/dist/index.js.map +1 -1
- package/dist/interactive.cjs +17 -0
- package/dist/interactive.cjs.map +1 -1
- package/dist/interactive.js +43 -26
- package/dist/interactive.js.map +1 -1
- package/dist/parse.cjs +8 -0
- package/dist/parse.cjs.map +1 -1
- package/dist/parse.js +8 -0
- package/dist/parse.js.map +1 -1
- package/dist/report-island.global.js +15 -14
- package/dist/ssr.cjs +17 -0
- package/dist/ssr.cjs.map +1 -1
- package/dist/ssr.js +30 -13
- package/dist/ssr.js.map +1 -1
- package/package.json +2 -2
package/dist/ssr.js
CHANGED
|
@@ -659,7 +659,7 @@ function ReportDocEntries({ entries }) {
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
// src/components/ReportSteps.tsx
|
|
662
|
-
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
662
|
+
import { Fragment as Fragment6, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
663
663
|
var STEP_GLYPH = {
|
|
664
664
|
passed: "\u2713",
|
|
665
665
|
failed: "\u2717",
|
|
@@ -736,6 +736,23 @@ function ReportStepItem({
|
|
|
736
736
|
children: step.errorMessage
|
|
737
737
|
}
|
|
738
738
|
) : null,
|
|
739
|
+
step.expected !== void 0 || step.actual !== void 0 ? /* @__PURE__ */ jsxs11(
|
|
740
|
+
"dl",
|
|
741
|
+
{
|
|
742
|
+
"data-slot": "step-comparison",
|
|
743
|
+
className: "mt-1.5 ml-6 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 font-mono text-xs",
|
|
744
|
+
children: [
|
|
745
|
+
step.expected !== void 0 ? /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
746
|
+
/* @__PURE__ */ jsx19("dt", { className: "text-muted-foreground", children: "Expected" }),
|
|
747
|
+
/* @__PURE__ */ jsx19("dd", { className: "overflow-x-auto whitespace-pre-wrap text-pass", children: step.expected })
|
|
748
|
+
] }) : null,
|
|
749
|
+
step.actual !== void 0 ? /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
750
|
+
/* @__PURE__ */ jsx19("dt", { className: "text-muted-foreground", children: "Actual" }),
|
|
751
|
+
/* @__PURE__ */ jsx19("dd", { className: "overflow-x-auto whitespace-pre-wrap text-fail", children: step.actual })
|
|
752
|
+
] }) : null
|
|
753
|
+
]
|
|
754
|
+
}
|
|
755
|
+
) : null,
|
|
739
756
|
step.docEntries.length > 0 ? /* @__PURE__ */ jsx19("div", { "data-es-docs": true, className: "mt-2 ml-6", children: /* @__PURE__ */ jsx19(ReportDocEntries, { entries: step.docEntries }) }) : null
|
|
740
757
|
]
|
|
741
758
|
}
|
|
@@ -859,7 +876,7 @@ function StateCardView({ card }) {
|
|
|
859
876
|
}
|
|
860
877
|
|
|
861
878
|
// src/components/ReportAttachments.tsx
|
|
862
|
-
import { Fragment as
|
|
879
|
+
import { Fragment as Fragment7, jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
863
880
|
function attachmentText(att) {
|
|
864
881
|
if (att.contentEncoding !== "BASE64") return att.body;
|
|
865
882
|
try {
|
|
@@ -899,7 +916,7 @@ function ReportAttachments({ attachments }) {
|
|
|
899
916
|
const href = dataUri ?? safeUrl(att.body);
|
|
900
917
|
const imageSrc = dataUri ?? safeImageUrl(att.body);
|
|
901
918
|
const isImage = att.mediaType.startsWith("image/") && imageSrc !== void 0;
|
|
902
|
-
return /* @__PURE__ */ jsx21("figure", { className: "m-0", children: isImage ? /* @__PURE__ */ jsxs13(
|
|
919
|
+
return /* @__PURE__ */ jsx21("figure", { className: "m-0", children: isImage ? /* @__PURE__ */ jsxs13(Fragment7, { children: [
|
|
903
920
|
/* @__PURE__ */ jsx21(
|
|
904
921
|
"img",
|
|
905
922
|
{
|
|
@@ -910,7 +927,7 @@ function ReportAttachments({ attachments }) {
|
|
|
910
927
|
}
|
|
911
928
|
),
|
|
912
929
|
/* @__PURE__ */ jsx21("figcaption", { className: "mt-1 text-xs text-muted-foreground", children: att.name })
|
|
913
|
-
] }) : /* @__PURE__ */ jsxs13(
|
|
930
|
+
] }) : /* @__PURE__ */ jsxs13(Fragment7, { children: [
|
|
914
931
|
att.external ? null : preview(att),
|
|
915
932
|
/* @__PURE__ */ jsxs13(
|
|
916
933
|
"a",
|
|
@@ -1105,7 +1122,7 @@ function flakinessOf(entries) {
|
|
|
1105
1122
|
}
|
|
1106
1123
|
|
|
1107
1124
|
// src/components/ScenarioRunHistory.tsx
|
|
1108
|
-
import { Fragment as
|
|
1125
|
+
import { Fragment as Fragment8, jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1109
1126
|
var MAX_DOTS = 10;
|
|
1110
1127
|
var DOT_COLOR = {
|
|
1111
1128
|
passed: "bg-pass",
|
|
@@ -1125,7 +1142,7 @@ function ScenarioRunHistory({ scenarioId }) {
|
|
|
1125
1142
|
const recent = entries.slice(-MAX_DOTS);
|
|
1126
1143
|
const flaky = flakinessOf(recent) === "flaky";
|
|
1127
1144
|
const summary = flaky ? `${describeRunHistory(recent)} \xB7 Flaky` : describeRunHistory(recent);
|
|
1128
|
-
return /* @__PURE__ */ jsxs15(
|
|
1145
|
+
return /* @__PURE__ */ jsxs15(Fragment8, { children: [
|
|
1129
1146
|
flaky ? /* @__PURE__ */ jsx23(Badge, { variant: "pending", "aria-label": "Flaky: status flips between recent runs", title: summary, children: "Flaky" }) : null,
|
|
1130
1147
|
/* @__PURE__ */ jsx23(
|
|
1131
1148
|
"span",
|
|
@@ -1451,9 +1468,9 @@ function ReportScenario({ scenario, hideTitle = false }) {
|
|
|
1451
1468
|
}
|
|
1452
1469
|
|
|
1453
1470
|
// src/components/ReportScenarioList.tsx
|
|
1454
|
-
import { Fragment as
|
|
1471
|
+
import { Fragment as Fragment9, jsx as jsx27 } from "react/jsx-runtime";
|
|
1455
1472
|
function ReportScenarioList({ feature }) {
|
|
1456
|
-
return /* @__PURE__ */ jsx27(
|
|
1473
|
+
return /* @__PURE__ */ jsx27(Fragment9, { children: feature.scenarios.map((scenario) => /* @__PURE__ */ jsx27(ReportScenario, { scenario }, scenario.id)) });
|
|
1457
1474
|
}
|
|
1458
1475
|
|
|
1459
1476
|
// src/components/ReportFeatureIntro.tsx
|
|
@@ -1491,7 +1508,7 @@ function featureKindLabel(kind) {
|
|
|
1491
1508
|
}
|
|
1492
1509
|
|
|
1493
1510
|
// src/components/ReportFeature.tsx
|
|
1494
|
-
import { Fragment as
|
|
1511
|
+
import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1495
1512
|
function ReportFeature({ feature }) {
|
|
1496
1513
|
const titleId = `${feature.id}-title`;
|
|
1497
1514
|
const bodyId = `${feature.id}-body`;
|
|
@@ -1551,14 +1568,14 @@ function ReportFeature({ feature }) {
|
|
|
1551
1568
|
s.failed,
|
|
1552
1569
|
" failed"
|
|
1553
1570
|
] }),
|
|
1554
|
-
s.skipped > 0 ? /* @__PURE__ */ jsxs20(
|
|
1571
|
+
s.skipped > 0 ? /* @__PURE__ */ jsxs20(Fragment10, { children: [
|
|
1555
1572
|
/* @__PURE__ */ jsx29("span", { "aria-hidden": true, children: "\xB7" }),
|
|
1556
1573
|
/* @__PURE__ */ jsxs20("span", { children: [
|
|
1557
1574
|
s.skipped,
|
|
1558
1575
|
" skipped"
|
|
1559
1576
|
] })
|
|
1560
1577
|
] }) : null,
|
|
1561
|
-
s.pending > 0 ? /* @__PURE__ */ jsxs20(
|
|
1578
|
+
s.pending > 0 ? /* @__PURE__ */ jsxs20(Fragment10, { children: [
|
|
1562
1579
|
/* @__PURE__ */ jsx29("span", { "aria-hidden": true, children: "\xB7" }),
|
|
1563
1580
|
/* @__PURE__ */ jsxs20("span", { children: [
|
|
1564
1581
|
s.pending,
|
|
@@ -1805,9 +1822,9 @@ function ReportSchemaError({ error }) {
|
|
|
1805
1822
|
}
|
|
1806
1823
|
|
|
1807
1824
|
// src/components/ReportShell.tsx
|
|
1808
|
-
import { Fragment as
|
|
1825
|
+
import { Fragment as Fragment11, jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1809
1826
|
function ReportTitleBlock({ title }) {
|
|
1810
|
-
return /* @__PURE__ */ jsxs24(
|
|
1827
|
+
return /* @__PURE__ */ jsxs24(Fragment11, { children: [
|
|
1811
1828
|
/* @__PURE__ */ jsx36("h1", { children: title ?? "Story Report" }),
|
|
1812
1829
|
/* @__PURE__ */ jsx36(ReportSummary, {}),
|
|
1813
1830
|
/* @__PURE__ */ jsx36(ReportMeta, {})
|