intellitester 0.4.2 → 0.4.3
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/{chunk-CGGEE467.cjs → chunk-IRLKUK76.cjs} +45 -8
- package/dist/chunk-IRLKUK76.cjs.map +1 -0
- package/dist/{chunk-J7357E4Q.js → chunk-XK4HXKX2.js} +45 -8
- package/dist/chunk-XK4HXKX2.js.map +1 -0
- package/dist/cli/index.cjs +19 -19
- package/dist/cli/index.js +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CGGEE467.cjs.map +0 -1
- package/dist/chunk-J7357E4Q.js.map +0 -1
|
@@ -2218,6 +2218,23 @@ async function evaluate(options) {
|
|
|
2218
2218
|
|
|
2219
2219
|
// src/executors/web/playwrightExecutor.ts
|
|
2220
2220
|
var defaultScreenshotDir = path4__namespace.default.join(process.cwd(), "artifacts", "screenshots");
|
|
2221
|
+
var interpolateTrackMetadata = (value, variables) => {
|
|
2222
|
+
if (typeof value === "string") {
|
|
2223
|
+
return interpolateVariables(value, variables);
|
|
2224
|
+
}
|
|
2225
|
+
if (Array.isArray(value)) {
|
|
2226
|
+
return value.map((entry) => interpolateTrackMetadata(entry, variables));
|
|
2227
|
+
}
|
|
2228
|
+
if (value && typeof value === "object") {
|
|
2229
|
+
return Object.fromEntries(
|
|
2230
|
+
Object.entries(value).map(([key, entry]) => [
|
|
2231
|
+
key,
|
|
2232
|
+
interpolateTrackMetadata(entry, variables)
|
|
2233
|
+
])
|
|
2234
|
+
);
|
|
2235
|
+
}
|
|
2236
|
+
return value;
|
|
2237
|
+
};
|
|
2221
2238
|
var resolveUrl = (value, baseUrl) => {
|
|
2222
2239
|
if (!baseUrl) return value;
|
|
2223
2240
|
try {
|
|
@@ -2470,8 +2487,9 @@ async function executeActionWithRetry(page, action, index, options) {
|
|
|
2470
2487
|
const extras = {};
|
|
2471
2488
|
const buildTrackPayload = (stepExtras) => {
|
|
2472
2489
|
if (!("track" in action)) return null;
|
|
2473
|
-
const
|
|
2474
|
-
if (!
|
|
2490
|
+
const rawTrack = action.track;
|
|
2491
|
+
if (!rawTrack || typeof rawTrack !== "object") return null;
|
|
2492
|
+
const track2 = interpolateTrackMetadata(rawTrack, context.variables);
|
|
2475
2493
|
if (typeof track2.type !== "string" || typeof track2.id !== "string") return null;
|
|
2476
2494
|
const { includeStepContext, ...rest } = track2;
|
|
2477
2495
|
const payload = {
|
|
@@ -3396,8 +3414,9 @@ var runWebTest = async (test, options = {}) => {
|
|
|
3396
3414
|
const sizeResults = [];
|
|
3397
3415
|
const buildTrackPayload = (action, index, stepExtras) => {
|
|
3398
3416
|
if (!("track" in action)) return null;
|
|
3399
|
-
const
|
|
3400
|
-
if (!
|
|
3417
|
+
const rawTrack = action.track;
|
|
3418
|
+
if (!rawTrack || typeof rawTrack !== "object") return null;
|
|
3419
|
+
const track2 = interpolateTrackMetadata(rawTrack, executionContext.variables);
|
|
3401
3420
|
if (typeof track2.type !== "string" || typeof track2.id !== "string") return null;
|
|
3402
3421
|
const { includeStepContext, ...rest } = track2;
|
|
3403
3422
|
const payload = {
|
|
@@ -3593,6 +3612,23 @@ var runWebTest = async (test, options = {}) => {
|
|
|
3593
3612
|
// src/executors/web/workflowExecutor.ts
|
|
3594
3613
|
chunkE7I5EAST_cjs.init_cjs_shims();
|
|
3595
3614
|
var defaultScreenshotDir2 = path4__namespace.default.join(process.cwd(), "artifacts", "screenshots");
|
|
3615
|
+
var interpolateTrackMetadata2 = (value, variables) => {
|
|
3616
|
+
if (typeof value === "string") {
|
|
3617
|
+
return interpolateVariables(value, variables);
|
|
3618
|
+
}
|
|
3619
|
+
if (Array.isArray(value)) {
|
|
3620
|
+
return value.map((entry) => interpolateTrackMetadata2(entry, variables));
|
|
3621
|
+
}
|
|
3622
|
+
if (value && typeof value === "object") {
|
|
3623
|
+
return Object.fromEntries(
|
|
3624
|
+
Object.entries(value).map(([key, entry]) => [
|
|
3625
|
+
key,
|
|
3626
|
+
interpolateTrackMetadata2(entry, variables)
|
|
3627
|
+
])
|
|
3628
|
+
);
|
|
3629
|
+
}
|
|
3630
|
+
return value;
|
|
3631
|
+
};
|
|
3596
3632
|
var getBrowser2 = (browser) => {
|
|
3597
3633
|
switch (browser) {
|
|
3598
3634
|
case "firefox":
|
|
@@ -3646,8 +3682,9 @@ async function runTestInWorkflow(test, page, context, options, _workflowDir, wor
|
|
|
3646
3682
|
};
|
|
3647
3683
|
const buildTrackPayload = (action, index, stepExtras) => {
|
|
3648
3684
|
if (!("track" in action)) return null;
|
|
3649
|
-
const
|
|
3650
|
-
if (!
|
|
3685
|
+
const rawTrack = action.track;
|
|
3686
|
+
if (!rawTrack || typeof rawTrack !== "object") return null;
|
|
3687
|
+
const track2 = interpolateTrackMetadata2(rawTrack, context.variables);
|
|
3651
3688
|
if (typeof track2.type !== "string" || typeof track2.id !== "string") return null;
|
|
3652
3689
|
const { includeStepContext, ...rest } = track2;
|
|
3653
3690
|
const payload = {
|
|
@@ -4913,5 +4950,5 @@ exports.runWorkflowWithContext = runWorkflowWithContext;
|
|
|
4913
4950
|
exports.setupAppwriteTracking = setupAppwriteTracking;
|
|
4914
4951
|
exports.startTrackingServer = startTrackingServer;
|
|
4915
4952
|
exports.webServerManager = webServerManager;
|
|
4916
|
-
//# sourceMappingURL=chunk-
|
|
4917
|
-
//# sourceMappingURL=chunk-
|
|
4953
|
+
//# sourceMappingURL=chunk-IRLKUK76.cjs.map
|
|
4954
|
+
//# sourceMappingURL=chunk-IRLKUK76.cjs.map
|