@testdino/playwright 1.0.6 → 1.0.7
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/index.js +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +6 -4
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2126,7 +2126,6 @@ var TestdinoReporter = class {
|
|
|
2126
2126
|
`run:begin runId=${this.runId} ciRunId=${this.config.ciRunId ?? "none"} shard=${shardInfo} skeleton=(${skeletonInfo})`
|
|
2127
2127
|
);
|
|
2128
2128
|
}
|
|
2129
|
-
console.log("[TEMP DEBUG] run:begin metadata:", JSON.stringify(metadata, null, 2));
|
|
2130
2129
|
await this.sendEvents([beginEvent]);
|
|
2131
2130
|
this.registerSignalHandlers();
|
|
2132
2131
|
return true;
|
|
@@ -2178,10 +2177,7 @@ var TestdinoReporter = class {
|
|
|
2178
2177
|
expectedStatus: test.expectedStatus,
|
|
2179
2178
|
timeout: test.timeout,
|
|
2180
2179
|
retries: test.retries,
|
|
2181
|
-
annotations: test.annotations
|
|
2182
|
-
type: a.type,
|
|
2183
|
-
description: a.description
|
|
2184
|
-
})),
|
|
2180
|
+
annotations: this.extractAnnotations(test.annotations),
|
|
2185
2181
|
// Execution context
|
|
2186
2182
|
retry: result.retry,
|
|
2187
2183
|
workerIndex: result.workerIndex,
|
|
@@ -2224,7 +2220,9 @@ var TestdinoReporter = class {
|
|
|
2224
2220
|
retry: result.retry,
|
|
2225
2221
|
// Worker Information
|
|
2226
2222
|
workerIndex: result.workerIndex,
|
|
2227
|
-
parallelIndex: result.parallelIndex
|
|
2223
|
+
parallelIndex: result.parallelIndex,
|
|
2224
|
+
// Annotations
|
|
2225
|
+
annotations: this.extractAnnotations(step.annotations)
|
|
2228
2226
|
};
|
|
2229
2227
|
await this.buffer.add(event);
|
|
2230
2228
|
}
|
|
@@ -2254,10 +2252,7 @@ var TestdinoReporter = class {
|
|
|
2254
2252
|
// Attachments Metadata
|
|
2255
2253
|
attachments: this.extractAttachments(step),
|
|
2256
2254
|
// Annotations
|
|
2257
|
-
annotations:
|
|
2258
|
-
type: a.type,
|
|
2259
|
-
description: a.description
|
|
2260
|
-
})),
|
|
2255
|
+
annotations: this.extractAnnotations(step.annotations),
|
|
2261
2256
|
// Retry Information
|
|
2262
2257
|
retry: result.retry,
|
|
2263
2258
|
// Worker Information
|
|
@@ -2302,10 +2297,7 @@ var TestdinoReporter = class {
|
|
|
2302
2297
|
workerIndex: result.workerIndex,
|
|
2303
2298
|
parallelIndex: result.parallelIndex,
|
|
2304
2299
|
// Test Metadata
|
|
2305
|
-
annotations:
|
|
2306
|
-
type: a.type,
|
|
2307
|
-
description: a.description
|
|
2308
|
-
})),
|
|
2300
|
+
annotations: this.extractAnnotations(result.annotations),
|
|
2309
2301
|
// Error Information
|
|
2310
2302
|
errors: result.errors.map((e) => this.extractError(e)).filter((e) => e !== void 0),
|
|
2311
2303
|
// Step Summary
|
|
@@ -2548,6 +2540,18 @@ var TestdinoReporter = class {
|
|
|
2548
2540
|
sequence: ++this.sequenceNumber
|
|
2549
2541
|
};
|
|
2550
2542
|
}
|
|
2543
|
+
/**
|
|
2544
|
+
* Extract annotations with optional location information
|
|
2545
|
+
*/
|
|
2546
|
+
extractAnnotations(annotations) {
|
|
2547
|
+
if (!annotations || annotations.length === 0) {
|
|
2548
|
+
return [];
|
|
2549
|
+
}
|
|
2550
|
+
return annotations.map((a) => ({
|
|
2551
|
+
type: a.type,
|
|
2552
|
+
description: a.description
|
|
2553
|
+
}));
|
|
2554
|
+
}
|
|
2551
2555
|
/**
|
|
2552
2556
|
* Extract parent suite information for skeleton mapping
|
|
2553
2557
|
*/
|