@reportforge/playwright-pdf 0.10.1 → 0.10.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/README.md CHANGED
@@ -211,7 +211,7 @@ Full reference: [reportforge.org/docs/configuration](https://reportforge.org/doc
211
211
 
212
212
  ### Live Runs
213
213
 
214
- Watch a run as it happens. With `live` enabled, the reporter prints an unguessable watch link — boxed under a `Live Tracker` heading — to your CI logs at run start and streams per-test progress to a hosted dashboard while tests execute. All shards of one CI run converge on a single live view, each test shows its steps as sub-lines beneath its own row, and the PDF is still generated at the end, unchanged.
214
+ Watch a run as it happens. With `live` enabled, the reporter prints an unguessable watch link — boxed under a `Live Tracker` heading — to your CI logs at run start and streams per-test progress to a hosted dashboard while tests execute. All shards of one CI run converge on a single live view, each test shows its own steps and assertions as sub-lines beneath its row — each step once, as it settles (Playwright's hooks, fixtures, and teardown are filtered out) — and the PDF is still generated at the end, unchanged.
215
215
 
216
216
  > The watch link is entitlement-gated. If you enable `live` but see no `Live Tracker` line, the reporter logs why (missing `RF_LICENSE_KEY`, or a cached token without the `live` entitlement — delete `~/.reportforge/license.json` to force re-activation).
217
217
 
package/dist/index.js CHANGED
@@ -13853,17 +13853,26 @@ function mapTestBegin(test, shardKey) {
13853
13853
  function mapTestEnd(test, result, shardKey) {
13854
13854
  return {
13855
13855
  id: test.id,
13856
+ title: clampWithEllipsis(test.title ?? "", MAX_TITLE_CHARS2),
13856
13857
  status: result.status,
13857
13858
  durationMs: result.duration,
13858
13859
  retry: result.retry,
13859
13860
  shardKey
13860
13861
  };
13861
13862
  }
13863
+ function isLifecycleStep(step) {
13864
+ if (step.category === "hook" || step.category === "fixture") return true;
13865
+ for (let p = step.parent; p; p = p.parent) {
13866
+ if (p.category === "hook" || p.category === "fixture") return true;
13867
+ }
13868
+ return false;
13869
+ }
13862
13870
  function shouldEmitStep(step, mode) {
13863
13871
  if (mode === "none") return false;
13864
13872
  if (!step.title) return false;
13873
+ if (step.error && step.category !== "hook" && step.category !== "fixture") return true;
13874
+ if (isLifecycleStep(step)) return false;
13865
13875
  if (mode === "all") return true;
13866
- if (step.error) return true;
13867
13876
  return step.category === "test.step" || step.category === "expect";
13868
13877
  }
13869
13878
  function isCurrentStep(step) {
@@ -13911,7 +13920,7 @@ var PdfReporter = class {
13911
13920
  this.liveConsole = false;
13912
13921
  this.options = parseOptions(rawOptions);
13913
13922
  this.dataCollector = new DataCollector(this.options.capture);
13914
- const version = true ? "0.10.1" : "0.x";
13923
+ const version = true ? "0.10.3" : "0.x";
13915
13924
  logger.info(`@reportforge/playwright-pdf v${version} initialised`);
13916
13925
  this.licenseClient = new LicenseClient({
13917
13926
  licenseKey: this.options.licenseKey,
@@ -13950,9 +13959,6 @@ var PdfReporter = class {
13950
13959
  if (this.liveSteps !== "none" && isCurrentStep(step)) {
13951
13960
  this.liveStreamer.enqueueTest(mapCurrentStep(test.id, step, this.liveShardKey));
13952
13961
  }
13953
- if (shouldEmitStep(step, this.liveSteps)) {
13954
- this.liveStreamer.enqueueEvent(mapStep(test.id, step, "begin", this.liveShardKey));
13955
- }
13956
13962
  } catch {
13957
13963
  }
13958
13964
  }
package/dist/index.mjs CHANGED
@@ -13854,17 +13854,26 @@ function mapTestBegin(test, shardKey) {
13854
13854
  function mapTestEnd(test, result, shardKey) {
13855
13855
  return {
13856
13856
  id: test.id,
13857
+ title: clampWithEllipsis(test.title ?? "", MAX_TITLE_CHARS2),
13857
13858
  status: result.status,
13858
13859
  durationMs: result.duration,
13859
13860
  retry: result.retry,
13860
13861
  shardKey
13861
13862
  };
13862
13863
  }
13864
+ function isLifecycleStep(step) {
13865
+ if (step.category === "hook" || step.category === "fixture") return true;
13866
+ for (let p = step.parent; p; p = p.parent) {
13867
+ if (p.category === "hook" || p.category === "fixture") return true;
13868
+ }
13869
+ return false;
13870
+ }
13863
13871
  function shouldEmitStep(step, mode) {
13864
13872
  if (mode === "none") return false;
13865
13873
  if (!step.title) return false;
13874
+ if (step.error && step.category !== "hook" && step.category !== "fixture") return true;
13875
+ if (isLifecycleStep(step)) return false;
13866
13876
  if (mode === "all") return true;
13867
- if (step.error) return true;
13868
13877
  return step.category === "test.step" || step.category === "expect";
13869
13878
  }
13870
13879
  function isCurrentStep(step) {
@@ -13912,7 +13921,7 @@ var PdfReporter = class {
13912
13921
  this.liveConsole = false;
13913
13922
  this.options = parseOptions(rawOptions);
13914
13923
  this.dataCollector = new DataCollector(this.options.capture);
13915
- const version = true ? "0.10.1" : "0.x";
13924
+ const version = true ? "0.10.3" : "0.x";
13916
13925
  logger.info(`@reportforge/playwright-pdf v${version} initialised`);
13917
13926
  this.licenseClient = new LicenseClient({
13918
13927
  licenseKey: this.options.licenseKey,
@@ -13951,9 +13960,6 @@ var PdfReporter = class {
13951
13960
  if (this.liveSteps !== "none" && isCurrentStep(step)) {
13952
13961
  this.liveStreamer.enqueueTest(mapCurrentStep(test.id, step, this.liveShardKey));
13953
13962
  }
13954
- if (shouldEmitStep(step, this.liveSteps)) {
13955
- this.liveStreamer.enqueueEvent(mapStep(test.id, step, "begin", this.liveShardKey));
13956
- }
13957
13963
  } catch {
13958
13964
  }
13959
13965
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportforge/playwright-pdf",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Enterprise-ready PDF reports for Playwright Test — minimal, detailed, and executive templates with CI/CD integrations",
5
5
  "license": "MIT",
6
6
  "author": "ReportForge",