@arghajit/dummy 0.3.34 → 0.3.36

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.
@@ -229,6 +229,7 @@ class PlaywrightPulseReporter {
229
229
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
230
230
  const project = (_a = test.parent) === null || _a === void 0 ? void 0 : _a.project();
231
231
  const browserDetails = this.getBrowserDetails(test);
232
+ const uniqueTestId = `${(project === null || project === void 0 ? void 0 : project.name) || "default"}-${test.id}`;
232
233
  // Captured outcome from Playwright
233
234
  const outcome = test.outcome();
234
235
  // Calculate final status based on the last result (Last-Run-Wins)
@@ -247,7 +248,7 @@ class PlaywrightPulseReporter {
247
248
  const processAllSteps = async (steps) => {
248
249
  let processed = [];
249
250
  for (const step of steps) {
250
- const processedStep = await this.processStep(step, pulseResult.id, browserDetails, test);
251
+ const processedStep = await this.processStep(step, uniqueTestId, browserDetails, test);
251
252
  processed.push(processedStep);
252
253
  if (step.steps && step.steps.length > 0) {
253
254
  processedStep.steps = await processAllSteps(step.steps);
@@ -284,7 +285,7 @@ class PlaywrightPulseReporter {
284
285
  : undefined,
285
286
  };
286
287
  const pulseResult = {
287
- id: `${(project === null || project === void 0 ? void 0 : project.name) || "default"}-${test.id}`,
288
+ id: uniqueTestId,
288
289
  runId: "TBD",
289
290
  describe: describeBlockName,
290
291
  spec_file: specFileName,
@@ -318,7 +319,7 @@ class PlaywrightPulseReporter {
318
319
  if (!attachment.path)
319
320
  continue;
320
321
  try {
321
- const testSubfolder = pulseResult.id.replace(/[^a-zA-Z0-9_-]/g, "_");
322
+ const testSubfolder = uniqueTestId.replace(/[^a-zA-Z0-9_-]/g, "_");
322
323
  const safeAttachmentName = path
323
324
  .basename(attachment.path)
324
325
  .replace(/[^a-zA-Z0-9_.-]/g, "_");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arghajit/dummy",
3
3
  "author": "Arghajit Singha",
4
- "version": "0.3.34",
4
+ "version": "0.3.36",
5
5
  "description": "A Playwright reporter and dashboard for visualizing test results.",
6
6
  "homepage": "https://arghajit47.github.io/playwright-pulse/",
7
7
  "repository": {
@@ -98,4 +98,4 @@
98
98
  "safe-buffer": "^5.2.1",
99
99
  "string_decoder": "^1.3.0"
100
100
  }
101
- }
101
+ }