@qawolf/cli 2.13.0 → 2.13.1
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/cli.js +2 -2
- package/dist/investigation-parser.js +15 -11
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -26111,7 +26111,7 @@ function startUpdateCheck(deps) {
|
|
|
26111
26111
|
// package.json
|
|
26112
26112
|
var package_default = {
|
|
26113
26113
|
name: "@qawolf/cli",
|
|
26114
|
-
version: "2.13.
|
|
26114
|
+
version: "2.13.1",
|
|
26115
26115
|
description: "Run and manage QA Wolf flows from the terminal, CI, or an AI agent",
|
|
26116
26116
|
keywords: [
|
|
26117
26117
|
"automation",
|
|
@@ -44797,4 +44797,4 @@ createProgram({ signals }).parseAsync().catch(() => {
|
|
|
44797
44797
|
process.exitCode = 1;
|
|
44798
44798
|
}).finally(() => exitWhenIdle(typeof process.exitCode === "number" ? process.exitCode : 0));
|
|
44799
44799
|
|
|
44800
|
-
//# debugId=
|
|
44800
|
+
//# debugId=271E63D80578715A64756E2164756E21
|
|
@@ -9891,12 +9891,13 @@ function serializeSnapshotHtml({
|
|
|
9891
9891
|
}
|
|
9892
9892
|
|
|
9893
9893
|
// src/domains/investigation/parser/trace/playwrightTraceSnapshots.ts
|
|
9894
|
-
function phase(
|
|
9895
|
-
|
|
9894
|
+
function phase(snapshot) {
|
|
9895
|
+
const name = snapshot.snapshotName;
|
|
9896
|
+
if (snapshot.phase === "before" || name.startsWith("before@"))
|
|
9896
9897
|
return "before";
|
|
9897
|
-
if (name.startsWith("input@"))
|
|
9898
|
+
if (snapshot.phase === "action" || name.startsWith("input@"))
|
|
9898
9899
|
return "input";
|
|
9899
|
-
if (name.startsWith("after@"))
|
|
9900
|
+
if (snapshot.phase === "after" || name.startsWith("after@"))
|
|
9900
9901
|
return "after";
|
|
9901
9902
|
return "other";
|
|
9902
9903
|
}
|
|
@@ -9921,7 +9922,7 @@ function listTraceSnapshots(trace, options = {}) {
|
|
|
9921
9922
|
isMainFrame: value.isMainFrame,
|
|
9922
9923
|
name: value.snapshotName,
|
|
9923
9924
|
pageId: value.pageId,
|
|
9924
|
-
phase: phase(value
|
|
9925
|
+
phase: phase(value),
|
|
9925
9926
|
streamId: stream.id,
|
|
9926
9927
|
timestamp: value.timestamp,
|
|
9927
9928
|
url: value.frameUrl
|
|
@@ -9978,12 +9979,12 @@ function readTraceSnapshot(trace, snapshotId, options = {}) {
|
|
|
9978
9979
|
|
|
9979
9980
|
// src/domains/investigation/parser/trace/playwrightTraceMedia.ts
|
|
9980
9981
|
function listTraceScreenshots(trace, options = {}) {
|
|
9981
|
-
const items = trace.streams.flatMap((stream) => stream.events.flatMap((event, index) => event.type === "screencast-frame" && event.sha1 ? [
|
|
9982
|
+
const items = trace.streams.flatMap((stream) => stream.events.flatMap((event, index) => event.type === "screencast-frame" && (event.file ?? event.sha1) ? [
|
|
9982
9983
|
{
|
|
9983
9984
|
height: event.height,
|
|
9984
9985
|
id: `${stream.id}:screenshot:${index}`,
|
|
9985
9986
|
pageId: event.pageId,
|
|
9986
|
-
resourceName: `resources/${event.sha1}`,
|
|
9987
|
+
resourceName: event.file ?? `resources/${event.sha1}`,
|
|
9987
9988
|
streamId: stream.id,
|
|
9988
9989
|
timestamp: event.timestamp,
|
|
9989
9990
|
width: event.width
|
|
@@ -10175,7 +10176,7 @@ async function readNetwork(trace, maxEntryBytes) {
|
|
|
10175
10176
|
const content = asObject(response?.content);
|
|
10176
10177
|
if (!request || typeof request.url !== "string" || typeof request.method !== "string")
|
|
10177
10178
|
return [];
|
|
10178
|
-
const bodyResourceName = typeof content?._sha1 === "string" ? `resources/${content._sha1}` : undefined;
|
|
10179
|
+
const bodyResourceName = typeof content?._file === "string" ? content._file : typeof content?._sha1 === "string" ? `resources/${content._sha1}` : undefined;
|
|
10179
10180
|
return [
|
|
10180
10181
|
{
|
|
10181
10182
|
bodyAvailable: bodyResourceName !== undefined && trace.archive.file(bodyResourceName) !== null,
|
|
@@ -10238,6 +10239,7 @@ function normalizeTraceEvent(value) {
|
|
|
10238
10239
|
const stringFields = [
|
|
10239
10240
|
"callId",
|
|
10240
10241
|
"class",
|
|
10242
|
+
"file",
|
|
10241
10243
|
"message",
|
|
10242
10244
|
"messageType",
|
|
10243
10245
|
"method",
|
|
@@ -10264,15 +10266,16 @@ function normalizeTraceEvent(value) {
|
|
|
10264
10266
|
if (event.error !== undefined && (!error || typeof error.message !== "string"))
|
|
10265
10267
|
return;
|
|
10266
10268
|
const snapshot = event.snapshot === undefined ? undefined : asObject(event.snapshot);
|
|
10267
|
-
if (event.snapshot !== undefined && (!snapshot || typeof snapshot.frameId !== "string" || typeof snapshot.frameUrl !== "string" || typeof snapshot.snapshotName !== "string" || snapshot.callId !== undefined && typeof snapshot.callId !== "string" || snapshot.pageId !== undefined && typeof snapshot.pageId !== "string" || snapshot.isMainFrame !== undefined && typeof snapshot.isMainFrame !== "boolean" || snapshot.timestamp !== undefined && typeof snapshot.timestamp !== "number"))
|
|
10269
|
+
if (event.snapshot !== undefined && (!snapshot || typeof snapshot.frameId !== "string" || typeof snapshot.frameUrl !== "string" || typeof snapshot.snapshotName !== "string" && typeof snapshot.phase !== "string" || snapshot.callId !== undefined && typeof snapshot.callId !== "string" || snapshot.pageId !== undefined && typeof snapshot.pageId !== "string" || snapshot.isMainFrame !== undefined && typeof snapshot.isMainFrame !== "boolean" || snapshot.timestamp !== undefined && typeof snapshot.timestamp !== "number"))
|
|
10268
10270
|
return;
|
|
10269
|
-
if ((event.type === "before" || event.type === "after") && typeof event.callId !== "string" || event.type === "frame-snapshot" && !snapshot || event.type === "log" && typeof event.message !== "string" || event.type === "console" && typeof event.text !== "string" || event.type === "screencast-frame" && typeof event.sha1 !== "string")
|
|
10271
|
+
if ((event.type === "before" || event.type === "after") && typeof event.callId !== "string" || event.type === "frame-snapshot" && !snapshot || event.type === "log" && typeof event.message !== "string" || event.type === "console" && typeof event.text !== "string" || event.type === "screencast-frame" && typeof event.sha1 !== "string" && typeof event.file !== "string")
|
|
10270
10272
|
return;
|
|
10271
10273
|
return {
|
|
10272
10274
|
callId: typeof event.callId === "string" ? event.callId : undefined,
|
|
10273
10275
|
class: typeof event.class === "string" ? event.class : undefined,
|
|
10274
10276
|
endTime: typeof event.endTime === "number" ? event.endTime : undefined,
|
|
10275
10277
|
error: error && typeof error.message === "string" ? { message: error.message } : undefined,
|
|
10278
|
+
file: typeof event.file === "string" ? event.file : undefined,
|
|
10276
10279
|
height: typeof event.height === "number" ? event.height : undefined,
|
|
10277
10280
|
message: typeof event.message === "string" ? event.message : undefined,
|
|
10278
10281
|
messageType: typeof event.messageType === "string" ? event.messageType : undefined,
|
|
@@ -10290,6 +10293,7 @@ function normalizeTraceEvent(value) {
|
|
|
10290
10293
|
html: snapshot.html,
|
|
10291
10294
|
isMainFrame: typeof snapshot.isMainFrame === "boolean" ? snapshot.isMainFrame : undefined,
|
|
10292
10295
|
pageId: typeof snapshot.pageId === "string" ? snapshot.pageId : undefined,
|
|
10296
|
+
phase: typeof snapshot.phase === "string" ? snapshot.phase : undefined,
|
|
10293
10297
|
snapshotName: typeof snapshot.snapshotName === "string" ? snapshot.snapshotName : "",
|
|
10294
10298
|
timestamp: typeof snapshot.timestamp === "number" ? snapshot.timestamp : undefined
|
|
10295
10299
|
} : undefined,
|
|
@@ -11440,4 +11444,4 @@ export {
|
|
|
11440
11444
|
investigate
|
|
11441
11445
|
};
|
|
11442
11446
|
|
|
11443
|
-
//# debugId=
|
|
11447
|
+
//# debugId=9520A9B8E033746964756E2164756E21
|