@futdevpro/dynamo-e2e 1.10.0 → 1.12.0

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.
Files changed (136) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +2 -2
  3. package/bin/dye2e.js +82 -0
  4. package/build/_modules/cwv/_collections/cwv-comparison.util.d.ts +48 -0
  5. package/build/_modules/cwv/_collections/cwv-comparison.util.d.ts.map +1 -0
  6. package/build/_modules/cwv/_collections/cwv-comparison.util.js +59 -0
  7. package/build/_modules/cwv/_collections/cwv-comparison.util.js.map +1 -0
  8. package/build/_modules/cwv/_collections/cwv-summarize.util.d.ts +29 -0
  9. package/build/_modules/cwv/_collections/cwv-summarize.util.d.ts.map +1 -0
  10. package/build/_modules/cwv/_collections/cwv-summarize.util.js +63 -0
  11. package/build/_modules/cwv/_collections/cwv-summarize.util.js.map +1 -0
  12. package/build/_modules/cwv/cwv-comparison.spec.d.ts +2 -0
  13. package/build/_modules/cwv/cwv-comparison.spec.d.ts.map +1 -0
  14. package/build/_modules/cwv/cwv-comparison.spec.js +77 -0
  15. package/build/_modules/cwv/cwv-comparison.spec.js.map +1 -0
  16. package/build/_modules/cwv/cwv-summarize.spec.d.ts +2 -0
  17. package/build/_modules/cwv/cwv-summarize.spec.d.ts.map +1 -0
  18. package/build/_modules/cwv/cwv-summarize.spec.js +70 -0
  19. package/build/_modules/cwv/cwv-summarize.spec.js.map +1 -0
  20. package/build/_modules/cwv/index.d.ts +2 -0
  21. package/build/_modules/cwv/index.d.ts.map +1 -1
  22. package/build/_modules/cwv/index.js +2 -0
  23. package/build/_modules/cwv/index.js.map +1 -1
  24. package/build/_modules/generators/_collections/cli-runner.util.d.ts +5 -0
  25. package/build/_modules/generators/_collections/cli-runner.util.d.ts.map +1 -1
  26. package/build/_modules/generators/_collections/cli-runner.util.js +77 -0
  27. package/build/_modules/generators/_collections/cli-runner.util.js.map +1 -1
  28. package/build/_modules/generators/bootstrap.spec.d.ts +2 -0
  29. package/build/_modules/generators/bootstrap.spec.d.ts.map +1 -0
  30. package/build/_modules/generators/bootstrap.spec.js +38 -0
  31. package/build/_modules/generators/bootstrap.spec.js.map +1 -0
  32. package/coverage/contracts/_collections/index.html +1 -1
  33. package/coverage/contracts/_collections/index.ts.html +1 -1
  34. package/coverage/contracts/_collections/utils/index.html +1 -1
  35. package/coverage/contracts/_collections/utils/test-id.util.ts.html +1 -1
  36. package/coverage/contracts/_enums/cwv-metric-type.enum.ts.html +1 -1
  37. package/coverage/contracts/_enums/field-test-case-type.enum.ts.html +1 -1
  38. package/coverage/contracts/_enums/index.html +1 -1
  39. package/coverage/contracts/_enums/index.ts.html +1 -1
  40. package/coverage/contracts/_enums/standard-viewport.enum.ts.html +1 -1
  41. package/coverage/contracts/_enums/test-expectation-type.enum.ts.html +1 -1
  42. package/coverage/contracts/_enums/test-run-mode-type.enum.ts.html +1 -1
  43. package/coverage/contracts/index.html +1 -1
  44. package/coverage/contracts/index.ts.html +1 -1
  45. package/coverage/cwv/_collections/cwv-aggregator.util.ts.html +1 -1
  46. package/coverage/cwv/_collections/cwv-comparison.util.ts.html +355 -0
  47. package/coverage/cwv/_collections/cwv-diagnose.util.ts.html +1 -1
  48. package/coverage/cwv/_collections/cwv-emission.util.ts.html +1 -1
  49. package/coverage/cwv/_collections/cwv-summarize.util.ts.html +325 -0
  50. package/coverage/cwv/_collections/index.html +38 -8
  51. package/coverage/cwv/_collections/inp-interaction-script.const.ts.html +1 -1
  52. package/coverage/cwv/_collections/web-vitals-page-script.const.ts.html +1 -1
  53. package/coverage/cwv/cwv-suite.generator.ts.html +1 -1
  54. package/coverage/cwv/index.html +1 -1
  55. package/coverage/generators/_collections/cli-runner.util.ts.html +273 -39
  56. package/coverage/generators/_collections/field-emission.util.ts.html +1 -1
  57. package/coverage/generators/_collections/form-level-emission.util.ts.html +1 -1
  58. package/coverage/generators/_collections/index.html +13 -13
  59. package/coverage/generators/_collections/spec-emission.util.ts.html +1 -1
  60. package/coverage/generators/_collections/test-case-filter.util.ts.html +1 -1
  61. package/coverage/generators/_collections/viewport-emission.util.ts.html +1 -1
  62. package/coverage/generators/form-suite.generator.ts.html +1 -1
  63. package/coverage/generators/index.html +1 -1
  64. package/coverage/generators/viewport-suite.generator.ts.html +1 -1
  65. package/coverage/index.html +26 -26
  66. package/coverage/lcov-report/contracts/_collections/index.html +1 -1
  67. package/coverage/lcov-report/contracts/_collections/index.ts.html +1 -1
  68. package/coverage/lcov-report/contracts/_collections/utils/index.html +1 -1
  69. package/coverage/lcov-report/contracts/_collections/utils/test-id.util.ts.html +1 -1
  70. package/coverage/lcov-report/contracts/_enums/cwv-metric-type.enum.ts.html +1 -1
  71. package/coverage/lcov-report/contracts/_enums/field-test-case-type.enum.ts.html +1 -1
  72. package/coverage/lcov-report/contracts/_enums/index.html +1 -1
  73. package/coverage/lcov-report/contracts/_enums/index.ts.html +1 -1
  74. package/coverage/lcov-report/contracts/_enums/standard-viewport.enum.ts.html +1 -1
  75. package/coverage/lcov-report/contracts/_enums/test-expectation-type.enum.ts.html +1 -1
  76. package/coverage/lcov-report/contracts/_enums/test-run-mode-type.enum.ts.html +1 -1
  77. package/coverage/lcov-report/contracts/index.html +1 -1
  78. package/coverage/lcov-report/contracts/index.ts.html +1 -1
  79. package/coverage/lcov-report/cwv/_collections/cwv-aggregator.util.ts.html +1 -1
  80. package/coverage/lcov-report/cwv/_collections/cwv-comparison.util.ts.html +355 -0
  81. package/coverage/lcov-report/cwv/_collections/cwv-diagnose.util.ts.html +1 -1
  82. package/coverage/lcov-report/cwv/_collections/cwv-emission.util.ts.html +1 -1
  83. package/coverage/lcov-report/cwv/_collections/cwv-summarize.util.ts.html +325 -0
  84. package/coverage/lcov-report/cwv/_collections/index.html +38 -8
  85. package/coverage/lcov-report/cwv/_collections/inp-interaction-script.const.ts.html +1 -1
  86. package/coverage/lcov-report/cwv/_collections/web-vitals-page-script.const.ts.html +1 -1
  87. package/coverage/lcov-report/cwv/cwv-suite.generator.ts.html +1 -1
  88. package/coverage/lcov-report/cwv/index.html +1 -1
  89. package/coverage/lcov-report/generators/_collections/cli-runner.util.ts.html +273 -39
  90. package/coverage/lcov-report/generators/_collections/field-emission.util.ts.html +1 -1
  91. package/coverage/lcov-report/generators/_collections/form-level-emission.util.ts.html +1 -1
  92. package/coverage/lcov-report/generators/_collections/index.html +13 -13
  93. package/coverage/lcov-report/generators/_collections/spec-emission.util.ts.html +1 -1
  94. package/coverage/lcov-report/generators/_collections/test-case-filter.util.ts.html +1 -1
  95. package/coverage/lcov-report/generators/_collections/viewport-emission.util.ts.html +1 -1
  96. package/coverage/lcov-report/generators/form-suite.generator.ts.html +1 -1
  97. package/coverage/lcov-report/generators/index.html +1 -1
  98. package/coverage/lcov-report/generators/viewport-suite.generator.ts.html +1 -1
  99. package/coverage/lcov-report/index.html +26 -26
  100. package/coverage/lcov-report/runtime/_collections/assertion-helpers.util.ts.html +1 -1
  101. package/coverage/lcov-report/runtime/_collections/index.html +1 -1
  102. package/coverage/lcov-report/runtime/_collections/unique-generator.util.ts.html +1 -1
  103. package/coverage/lcov-report/runtime/_collections/wait-helpers.util.ts.html +5 -5
  104. package/coverage/lcov-report/runtime/_services/dialog-page-object.ts.html +1 -1
  105. package/coverage/lcov-report/runtime/_services/field-page-object.ts.html +1 -1
  106. package/coverage/lcov-report/runtime/_services/form-page-object.ts.html +1 -1
  107. package/coverage/lcov-report/runtime/_services/index.html +1 -1
  108. package/coverage/lcov-report/runtime/_services/loader-page-object.ts.html +1 -1
  109. package/coverage/lcov-report/runtime/_services/logger.service.ts.html +1 -1
  110. package/coverage/lcov-report/runtime/_services/login-flow-helper.base.ts.html +1 -1
  111. package/coverage/lcov-report/runtime/_services/nav-page-object.ts.html +1 -1
  112. package/coverage/lcov-report/runtime/_services/toast-page-object.ts.html +1 -1
  113. package/coverage/lcov-report/runtime/_services/wave-2b-page-objects.ts.html +1 -1
  114. package/coverage/lcov-report/runtime/index.html +1 -1
  115. package/coverage/lcov-report/runtime/index.ts.html +1 -1
  116. package/coverage/lcov.info +485 -150
  117. package/coverage/runtime/_collections/assertion-helpers.util.ts.html +1 -1
  118. package/coverage/runtime/_collections/index.html +1 -1
  119. package/coverage/runtime/_collections/unique-generator.util.ts.html +1 -1
  120. package/coverage/runtime/_collections/wait-helpers.util.ts.html +5 -5
  121. package/coverage/runtime/_services/dialog-page-object.ts.html +1 -1
  122. package/coverage/runtime/_services/field-page-object.ts.html +1 -1
  123. package/coverage/runtime/_services/form-page-object.ts.html +1 -1
  124. package/coverage/runtime/_services/index.html +1 -1
  125. package/coverage/runtime/_services/loader-page-object.ts.html +1 -1
  126. package/coverage/runtime/_services/logger.service.ts.html +1 -1
  127. package/coverage/runtime/_services/login-flow-helper.base.ts.html +1 -1
  128. package/coverage/runtime/_services/nav-page-object.ts.html +1 -1
  129. package/coverage/runtime/_services/toast-page-object.ts.html +1 -1
  130. package/coverage/runtime/_services/wave-2b-page-objects.ts.html +1 -1
  131. package/coverage/runtime/index.html +1 -1
  132. package/coverage/runtime/index.ts.html +1 -1
  133. package/coverage/tmp/coverage-213156-1781073300871-0.json +1 -0
  134. package/coverage/tmp/{coverage-224932-1781071393426-0.json → coverage-220640-1781073299508-0.json} +1 -1
  135. package/package.json +1 -1
  136. package/coverage/tmp/coverage-226960-1781071394780-0.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  Minden release a `dynamo-e2e-foundation` HYPERPLAN MP-N ütemezést követi.
4
4
  Verzióformátum: `MM.mm.p` (két-számjegyes major-minor, Dynamo-konvenció).
5
5
 
6
+ ## [01.12.0] — 2026-06-10
7
+
8
+ ### Added (CWV summarize util + `dye2e summarize` + `dye2e diff`)
9
+ - `DyE2E_CWVSummarize_Util`:
10
+ - `toMarkdown(report, thresholds?)` — markdown-tablázat per route, 🟢🔴⚪
11
+ - `toJsonSummary(report, thresholds?)` — `{ metric: { p75, status } }` map
12
+ - **`dye2e summarize`** CLI: `--report <path>` + `--format markdown|json`
13
+ - **`dye2e diff`** CLI: `--old <path>` `--new <path>` `--tolerance <pct>`
14
+ - Exit 0 ha nincs regression, exit 1 ha van
15
+ - Markdown-tablázat output (CI-friendly)
16
+
17
+ ### Test
18
+ - 206/0 Jasmine (198 előbb + 8 új summarize)
19
+ - Coverage: 98.38% / 86.15% / 97.5% / 98.38%
20
+
21
+ ## [01.11.0] — 2026-06-10
22
+
23
+ ### Added (CWV comparison + dye2e bootstrap)
24
+ - `DyE2E_CWVComparison_Util` (`cwv/_collections/cwv-comparison.util.ts`):
25
+ - `compareReports(old, new, tolerance?)` — két CWV JSON-report összevet,
26
+ p75 deltával, status: improved/regressed/stable
27
+ - `regressionsOnly()` — szűr csak a regressziókra
28
+ - `formatMarkdownTable()` — markdown-tablázat 🟢🔴⚪ icon-okkal
29
+ - **`dye2e bootstrap`** CLI parancs:
30
+ - `pwd` + `force` flag
31
+ - 5 fájl scaffold: `playwright.config.ts`, `e2e/generate.ts`,
32
+ `e2e/tests/.gitkeep`, `e2e/tests/generated/.gitkeep`, `e2e/README.md`
33
+ - `DyE2E_CliRunner_Util.bootstrapFiles()` testable factory
34
+
35
+ ### Test
36
+ - 198/0 Jasmine zöld (183 előbb + 10 CWV comparison + 5 bootstrap)
37
+ - Coverage: 98.32% / 86.28% / 97.45% / 98.32%
38
+
6
39
  ## [01.10.0] — 2026-06-10
7
40
 
8
41
  ### Added (Wave-3 attribution diagnose + `dye2e doctor` CLI)
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @futdevpro/dynamo-e2e
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@futdevpro/dynamo-e2e.svg?label=npm)](https://www.npmjs.com/package/@futdevpro/dynamo-e2e)
4
- [![coverage](https://img.shields.io/badge/coverage-98.2%25-brightgreen.svg)](./coverage/)
5
- [![specs](https://img.shields.io/badge/specs-183%2F0-brightgreen.svg)](./src/)
4
+ [![coverage](https://img.shields.io/badge/coverage-98.38%25-brightgreen.svg)](./coverage/)
5
+ [![specs](https://img.shields.io/badge/specs-206%2F0-brightgreen.svg)](./src/)
6
6
  [![hyperplan](https://img.shields.io/badge/hyperplan-109%2F112-brightgreen.svg)](./__documentations/plans/dynamo-e2e-foundation/HYPERPLAN.md)
7
7
 
8
8
  End-to-end testing engine for the Dynamo + FDP ecosystem.
package/bin/dye2e.js CHANGED
@@ -25,6 +25,88 @@ function main() {
25
25
  process.exit(0);
26
26
  }
27
27
 
28
+ if (parsed.command === 'summarize') {
29
+ const reportPath = parsed.flags.report;
30
+ if (!reportPath) {
31
+ process.stderr.write('[dye2e] error: --report <path> required\n');
32
+ process.exit(2);
33
+ }
34
+ const absPath = path.resolve(process.cwd(), reportPath);
35
+ if (!fs.existsSync(absPath)) {
36
+ process.stderr.write('[dye2e] error: report file not found: ' + absPath + '\n');
37
+ process.exit(2);
38
+ }
39
+ let report;
40
+ try {
41
+ report = JSON.parse(fs.readFileSync(absPath, 'utf-8'));
42
+ } catch (e) {
43
+ process.stderr.write('[dye2e] error: invalid JSON in report\n');
44
+ process.exit(3);
45
+ }
46
+ const { DyE2E_CWVSummarize_Util } = require('../build/_modules/cwv/_collections/cwv-summarize.util');
47
+ const format = parsed.flags.format || 'markdown';
48
+ if (format === 'json') {
49
+ process.stdout.write(JSON.stringify(DyE2E_CWVSummarize_Util.toJsonSummary(report), null, 2) + '\n');
50
+ } else {
51
+ process.stdout.write(DyE2E_CWVSummarize_Util.toMarkdown(report) + '\n');
52
+ }
53
+ process.exit(0);
54
+ }
55
+
56
+ if (parsed.command === 'diff') {
57
+ const oldPath = parsed.flags.old;
58
+ const newPath = parsed.flags.new;
59
+ if (!oldPath || !newPath) {
60
+ process.stderr.write('[dye2e] error: --old <path> --new <path> required\n');
61
+ process.exit(2);
62
+ }
63
+ const tolerance = parsed.flags.tolerance ? Number(parsed.flags.tolerance) : 5;
64
+ const oldAbs = path.resolve(process.cwd(), oldPath);
65
+ const newAbs = path.resolve(process.cwd(), newPath);
66
+ if (!fs.existsSync(oldAbs) || !fs.existsSync(newAbs)) {
67
+ process.stderr.write('[dye2e] error: one of the report files not found\n');
68
+ process.exit(2);
69
+ }
70
+ let oldR, newR;
71
+ try {
72
+ oldR = JSON.parse(fs.readFileSync(oldAbs, 'utf-8'));
73
+ newR = JSON.parse(fs.readFileSync(newAbs, 'utf-8'));
74
+ } catch (e) {
75
+ process.stderr.write('[dye2e] error: invalid JSON in one of the reports\n');
76
+ process.exit(3);
77
+ }
78
+ const { DyE2E_CWVComparison_Util } = require('../build/_modules/cwv/_collections/cwv-comparison.util');
79
+ const result = DyE2E_CWVComparison_Util.compareReports(oldR, newR, tolerance);
80
+ process.stdout.write(DyE2E_CWVComparison_Util.formatMarkdownTable(result) + '\n');
81
+ const regressions = DyE2E_CWVComparison_Util.regressionsOnly(result);
82
+ process.exit(regressions.length > 0 ? 1 : 0);
83
+ }
84
+
85
+ if (parsed.command === 'bootstrap') {
86
+ const projectRoot = parsed.flags.pwd ? path.resolve(parsed.flags.pwd) : process.cwd();
87
+ const force = parsed.flags.force === 'true';
88
+ const files = DyE2E_CliRunner_Util.bootstrapFiles();
89
+ let written = 0;
90
+ let skipped = 0;
91
+ process.stdout.write('dye2e bootstrap — scaffolding into ' + projectRoot + '\n\n');
92
+ for (const [relPath, content] of Object.entries(files)) {
93
+ const absPath = path.resolve(projectRoot, relPath);
94
+ if (fs.existsSync(absPath) && !force) {
95
+ process.stdout.write(' [SKIP] ' + relPath + ' (exists)\n');
96
+ skipped++;
97
+ continue;
98
+ }
99
+ fs.mkdirSync(path.dirname(absPath), { recursive: true });
100
+ fs.writeFileSync(absPath, content, 'utf-8');
101
+ process.stdout.write(' [WRITE] ' + relPath + '\n');
102
+ written++;
103
+ }
104
+ process.stdout.write('\n done — ' + written + ' written, ' + skipped + ' skipped\n');
105
+ process.stdout.write('\n next: pnpm add -D @futdevpro/dynamo-e2e @playwright/test\n');
106
+ process.stdout.write(' then: node e2e/generate.ts && npx playwright test\n');
107
+ process.exit(0);
108
+ }
109
+
28
110
  if (parsed.command === 'doctor') {
29
111
  const projectRoot = parsed.flags.pwd ? path.resolve(parsed.flags.pwd) : process.cwd();
30
112
  const report = DyE2E_CliRunner_Util.doctorReport(projectRoot, fs);
@@ -0,0 +1,48 @@
1
+ import { DyE2E_CWVMetric_Type } from '../../contracts/_enums/cwv-metric-type.enum';
2
+ /**
3
+ * MP-05/Wave-3 — CWV report comparison util.
4
+ *
5
+ * Két JSON-report-ot összevet (régi vs új) és visszaadja a regressziókat.
6
+ * Tipikus use-case: nightly CICD vs előző-stable, vagy PR-build vs main.
7
+ */
8
+ export interface DyE2E_CWVComparison_Summary {
9
+ metric: DyE2E_CWVMetric_Type;
10
+ oldP75: number;
11
+ newP75: number;
12
+ /** Delta = newP75 − oldP75. Pozitív = romlás (LCP/CLS/INP/TTFB/FCP-nél). */
13
+ delta: number;
14
+ /** Százalékos változás. */
15
+ deltaPercent: number;
16
+ /** "improved" | "regressed" | "stable". */
17
+ status: 'improved' | 'regressed' | 'stable';
18
+ }
19
+ export interface DyE2E_CWVReport_Shape {
20
+ route?: string;
21
+ summary?: Record<string, {
22
+ p75?: number;
23
+ n?: number;
24
+ }>;
25
+ raw?: Array<{
26
+ metric?: string;
27
+ value?: number;
28
+ iter?: number;
29
+ }>;
30
+ [extra: string]: unknown;
31
+ }
32
+ export declare class DyE2E_CWVComparison_Util {
33
+ /** Delta-tűrés (% alatti változás "stable"-nek számít). Default 5%. */
34
+ static defaultStableTolerancePercent: number;
35
+ /**
36
+ * Összevet két CWV-JSON-report-ot.
37
+ *
38
+ * @param oldReport — előző (baseline) report
39
+ * @param newReport — új (current) report
40
+ * @param tolerance — % alatti változás "stable". Default `defaultStableTolerancePercent`.
41
+ */
42
+ static compareReports(oldReport: DyE2E_CWVReport_Shape, newReport: DyE2E_CWVReport_Shape, tolerance?: number): DyE2E_CWVComparison_Summary[];
43
+ /** Csak a regresszióknak a leírása (kiemelve). */
44
+ static regressionsOnly(comparisons: DyE2E_CWVComparison_Summary[]): DyE2E_CWVComparison_Summary[];
45
+ /** Ember-olvasható összegzés markdown-tablázatra. */
46
+ static formatMarkdownTable(comparisons: DyE2E_CWVComparison_Summary[]): string;
47
+ }
48
+ //# sourceMappingURL=cwv-comparison.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-comparison.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cwv/_collections/cwv-comparison.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF;;;;;GAKG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC7C;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,GAAG,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,qBAAa,wBAAwB;IAEnC,uEAAuE;IACvE,MAAM,CAAC,6BAA6B,EAAE,MAAM,CAAK;IAEjD;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CACnB,SAAS,EAAE,qBAAqB,EAChC,SAAS,EAAE,qBAAqB,EAChC,SAAS,GAAE,MAA+D,GACzE,2BAA2B,EAAE;IA0BhC,kDAAkD;IAClD,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,2BAA2B,EAAE,GAAG,2BAA2B,EAAE;IAIjG,qDAAqD;IACrD,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,2BAA2B,EAAE,GAAG,MAAM;CAa/E"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyE2E_CWVComparison_Util = void 0;
4
+ const cwv_metric_type_enum_1 = require("../../contracts/_enums/cwv-metric-type.enum");
5
+ class DyE2E_CWVComparison_Util {
6
+ /** Delta-tűrés (% alatti változás "stable"-nek számít). Default 5%. */
7
+ static defaultStableTolerancePercent = 5;
8
+ /**
9
+ * Összevet két CWV-JSON-report-ot.
10
+ *
11
+ * @param oldReport — előző (baseline) report
12
+ * @param newReport — új (current) report
13
+ * @param tolerance — % alatti változás "stable". Default `defaultStableTolerancePercent`.
14
+ */
15
+ static compareReports(oldReport, newReport, tolerance = DyE2E_CWVComparison_Util.defaultStableTolerancePercent) {
16
+ const metrics = [
17
+ cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp,
18
+ cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls,
19
+ cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp,
20
+ cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.ttfb,
21
+ cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.fcp,
22
+ ];
23
+ const result = [];
24
+ for (const metric of metrics) {
25
+ const oldP75 = oldReport.summary?.[metric]?.p75 ?? NaN;
26
+ const newP75 = newReport.summary?.[metric]?.p75 ?? NaN;
27
+ if (!isFinite(oldP75) || !isFinite(newP75)) {
28
+ continue;
29
+ }
30
+ const delta = newP75 - oldP75;
31
+ const deltaPercent = oldP75 > 0 ? (delta / oldP75) * 100 : 0;
32
+ const status = Math.abs(deltaPercent) <= tolerance ? 'stable' :
33
+ delta < 0 ? 'improved' :
34
+ 'regressed';
35
+ result.push({ metric, oldP75, newP75, delta, deltaPercent, status });
36
+ }
37
+ return result;
38
+ }
39
+ /** Csak a regresszióknak a leírása (kiemelve). */
40
+ static regressionsOnly(comparisons) {
41
+ return comparisons.filter((c) => c.status === 'regressed');
42
+ }
43
+ /** Ember-olvasható összegzés markdown-tablázatra. */
44
+ static formatMarkdownTable(comparisons) {
45
+ if (comparisons.length === 0) {
46
+ return '_No comparable metrics._';
47
+ }
48
+ const header = '| Metric | Old p75 | New p75 | Delta | Δ% | Status |\n|---|---|---|---|---|---|';
49
+ const rows = comparisons.map((c) => {
50
+ const unit = c.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls ? '' : 'ms';
51
+ const icon = c.status === 'improved' ? '🟢' :
52
+ c.status === 'regressed' ? '🔴' : '⚪';
53
+ return `| ${c.metric.toUpperCase()} | ${c.oldP75.toFixed(2)}${unit} | ${c.newP75.toFixed(2)}${unit} | ${c.delta.toFixed(2)}${unit} | ${c.deltaPercent.toFixed(1)}% | ${icon} ${c.status} |`;
54
+ });
55
+ return `${header}\n${rows.join('\n')}`;
56
+ }
57
+ }
58
+ exports.DyE2E_CWVComparison_Util = DyE2E_CWVComparison_Util;
59
+ //# sourceMappingURL=cwv-comparison.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-comparison.util.js","sourceRoot":"","sources":["../../../../src/_modules/cwv/_collections/cwv-comparison.util.ts"],"names":[],"mappings":";;;AAAA,sFAAmF;AA4BnF,MAAa,wBAAwB;IAEnC,uEAAuE;IACvE,MAAM,CAAC,6BAA6B,GAAW,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CACnB,SAAgC,EAChC,SAAgC,EAChC,YAAoB,wBAAwB,CAAC,6BAA6B;QAE1E,MAAM,OAAO,GAA2B;YACtC,2CAAoB,CAAC,GAAG;YACxB,2CAAoB,CAAC,GAAG;YACxB,2CAAoB,CAAC,GAAG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AAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7B,OAAO,0BAA0B,CAAC;QACpC,CAAC;QACD,MAAM,MAAM,GAAW,iFAAiF,CAAC;QACzG,MAAM,IAAI,GAAa,WAAW,CAAC,GAAG,CAAC,CAAC,CAA8B,EAAU,EAAE;YAChF,MAAM,IAAI,GAAW,CAAC,CAAC,MAAM,KAAK,2CAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YACvE,MAAM,IAAI,GAAW,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACnD,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;YACxC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAC9L,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACzC,CAAC;;AA5DH,4DA6DC"}
@@ -0,0 +1,29 @@
1
+ import { DyE2E_CWVThresholds_Interface } from '../../contracts/_models/interfaces/cwv-thresholds.interface';
2
+ /**
3
+ * Wave-3 — CWV JSON-report summarizer util.
4
+ *
5
+ * Bemenet: a `DyE2E_CWVEmission_Util.emitRouteBlock()` által írt JSON-shape
6
+ * ({ route, summary, raw }). Kimenet: ember-olvasható markdown vagy JSON.
7
+ */
8
+ export interface DyE2E_CWVReportShape_Min {
9
+ route?: string;
10
+ summary?: Record<string, {
11
+ n?: number;
12
+ p50?: number;
13
+ p75?: number;
14
+ p95?: number;
15
+ mean?: number;
16
+ min?: number;
17
+ max?: number;
18
+ }>;
19
+ }
20
+ export declare class DyE2E_CWVSummarize_Util {
21
+ /** Markdown-tablázat egy report-ról. */
22
+ static toMarkdown(report: DyE2E_CWVReportShape_Min, thresholds?: DyE2E_CWVThresholds_Interface): string;
23
+ /** Egyszerű JSON-summary (csak p75 + status). */
24
+ static toJsonSummary(report: DyE2E_CWVReportShape_Min, thresholds?: DyE2E_CWVThresholds_Interface): Record<string, {
25
+ p75: number | null;
26
+ status: 'pass' | 'fail' | 'no-data';
27
+ }>;
28
+ }
29
+ //# sourceMappingURL=cwv-summarize.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-summarize.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cwv/_collections/cwv-summarize.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAG5G;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/H;AAED,qBAAa,uBAAuB;IAElC,wCAAwC;IACxC,MAAM,CAAC,UAAU,CACf,MAAM,EAAE,wBAAwB,EAChC,UAAU,GAAE,6BAAmD,GAC9D,MAAM;IA8BT,iDAAiD;IACjD,MAAM,CAAC,aAAa,CAClB,MAAM,EAAE,wBAAwB,EAChC,UAAU,GAAE,6BAAmD,GAC9D,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAwB/E"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyE2E_CWVSummarize_Util = void 0;
4
+ const cwv_metric_type_enum_1 = require("../../contracts/_enums/cwv-metric-type.enum");
5
+ const cwv_default_thresholds_const_1 = require("../../contracts/_collections/constants/cwv-default-thresholds.const");
6
+ class DyE2E_CWVSummarize_Util {
7
+ /** Markdown-tablázat egy report-ról. */
8
+ static toMarkdown(report, thresholds = cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS) {
9
+ const lines = [];
10
+ lines.push(`## CWV summary — ${report.route ?? 'unknown route'}`);
11
+ lines.push('');
12
+ lines.push('| Metric | n | p50 | p75 | p95 | Target | Status |');
13
+ lines.push('|---|---|---|---|---|---|---|');
14
+ const metrics = [
15
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, thresholdKey: 'lcp_p75_ms', unit: 'ms' },
16
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, thresholdKey: 'cls_p75', unit: '' },
17
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp, thresholdKey: 'inp_p75_ms', unit: 'ms' },
18
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.ttfb, thresholdKey: 'ttfb_p75_ms', unit: 'ms' },
19
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.fcp, thresholdKey: 'fcp_p75_ms', unit: 'ms' },
20
+ ];
21
+ for (const m of metrics) {
22
+ const stat = report.summary?.[m.key];
23
+ if (!stat || !stat.n || stat.n === 0) {
24
+ continue;
25
+ }
26
+ const threshold = thresholds[m.thresholdKey];
27
+ const passing = typeof threshold === 'number' && typeof stat.p75 === 'number' && stat.p75 <= threshold;
28
+ const icon = passing ? '🟢' : (typeof threshold === 'number' ? '🔴' : '⚪');
29
+ const targetText = typeof threshold === 'number' ? `≤ ${threshold}${m.unit}` : 'n/a';
30
+ const p50 = typeof stat.p50 === 'number' ? `${stat.p50.toFixed(2)}${m.unit}` : '—';
31
+ const p75 = typeof stat.p75 === 'number' ? `${stat.p75.toFixed(2)}${m.unit}` : '—';
32
+ const p95 = typeof stat.p95 === 'number' ? `${stat.p95.toFixed(2)}${m.unit}` : '—';
33
+ lines.push(`| ${m.key.toUpperCase()} | ${stat.n} | ${p50} | ${p75} | ${p95} | ${targetText} | ${icon} |`);
34
+ }
35
+ return lines.join('\n');
36
+ }
37
+ /** Egyszerű JSON-summary (csak p75 + status). */
38
+ static toJsonSummary(report, thresholds = cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS) {
39
+ const out = {};
40
+ const mapping = [
41
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, thresholdKey: 'lcp_p75_ms' },
42
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, thresholdKey: 'cls_p75' },
43
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp, thresholdKey: 'inp_p75_ms' },
44
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.ttfb, thresholdKey: 'ttfb_p75_ms' },
45
+ { key: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.fcp, thresholdKey: 'fcp_p75_ms' },
46
+ ];
47
+ for (const m of mapping) {
48
+ const stat = report.summary?.[m.key];
49
+ if (!stat || !stat.n || stat.n === 0) {
50
+ out[m.key] = { p75: null, status: 'no-data' };
51
+ continue;
52
+ }
53
+ const threshold = thresholds[m.thresholdKey];
54
+ const status = typeof threshold === 'number' && typeof stat.p75 === 'number'
55
+ ? (stat.p75 <= threshold ? 'pass' : 'fail')
56
+ : 'no-data';
57
+ out[m.key] = { p75: stat.p75 ?? null, status: status };
58
+ }
59
+ return out;
60
+ }
61
+ }
62
+ exports.DyE2E_CWVSummarize_Util = DyE2E_CWVSummarize_Util;
63
+ //# sourceMappingURL=cwv-summarize.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-summarize.util.js","sourceRoot":"","sources":["../../../../src/_modules/cwv/_collections/cwv-summarize.util.ts"],"names":[],"mappings":";;;AAAA,sFAAmF;AAEnF,sHAA0G;AAa1G,MAAa,uBAAuB;IAElC,wCAAwC;IACxC,MAAM,CAAC,UAAU,CACf,MAAgC,EAChC,aAA4C,kDAAmB;QAE/D,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,oBAAoB,MAAM,CAAC,KAAK,IAAI,eAAe,EAAE,CAAC,CAAC;QAClE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAqG;YAChH,EAAE,GAAG,EAAE,2CAAoB,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;YACzE,EAAE,GAAG,EAAE,2CAAoB,CAAC,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;YACpE,EAAE,GAAG,EAAE,2CAAoB,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;YACzE,EAAE,GAAG,EAAE,2CAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE;YAC3E,EAAE,GAAG,EAAE,2CAAoB,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;SAC1E,CAAC;QACF,KAAK,MAAM,CAA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S;YACX,CAAC;YACD,MAAM,SAAS,GAAuB,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;YACjE,MAAM,MAAM,GACV,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ;gBAC3D,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;gBAC3C,CAAC,CAAC,SAAS,CAAC;YAChB,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QACzD,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAhED,0DAgEC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cwv-comparison.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-comparison.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-comparison.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cwv_metric_type_enum_1 = require("../contracts/_enums/cwv-metric-type.enum");
4
+ const cwv_comparison_util_1 = require("./_collections/cwv-comparison.util");
5
+ describe('| dynamo-e2e | CWV Comparison Util (Wave-3)', () => {
6
+ it('| ures report-ok → [] (nincs metric)', () => {
7
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports({}, {});
8
+ expect(result.length).toBe(0);
9
+ });
10
+ it('| stable: ±5% alatti változás', () => {
11
+ const oldR = { summary: { lcp: { p75: 2000 } } };
12
+ const newR = { summary: { lcp: { p75: 2080 } } };
13
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
14
+ expect(result[0].status).toBe('stable');
15
+ });
16
+ it('| improved: >5% csökkenés', () => {
17
+ const oldR = { summary: { lcp: { p75: 2000 } } };
18
+ const newR = { summary: { lcp: { p75: 1500 } } };
19
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
20
+ expect(result[0].status).toBe('improved');
21
+ expect(result[0].delta).toBe(-500);
22
+ });
23
+ it('| regressed: >5% növekedés', () => {
24
+ const oldR = { summary: { lcp: { p75: 2000 } } };
25
+ const newR = { summary: { lcp: { p75: 3000 } } };
26
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
27
+ expect(result[0].status).toBe('regressed');
28
+ expect(result[0].deltaPercent).toBe(50);
29
+ });
30
+ it('| custom tolerance — 1% strict mode', () => {
31
+ const oldR = { summary: { lcp: { p75: 2000 } } };
32
+ const newR = { summary: { lcp: { p75: 2050 } } };
33
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR, 1);
34
+ expect(result[0].status).toBe('regressed');
35
+ });
36
+ it('| több metric egyszerre', () => {
37
+ const oldR = { summary: { lcp: { p75: 2000 }, cls: { p75: 0.05 }, inp: { p75: 150 } } };
38
+ const newR = { summary: { lcp: { p75: 2100 }, cls: { p75: 0.20 }, inp: { p75: 100 } } };
39
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
40
+ expect(result.length).toBe(3);
41
+ const lcp = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
42
+ const cls = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls);
43
+ const inp = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp);
44
+ expect(lcp?.status).toBe('stable');
45
+ expect(cls?.status).toBe('regressed');
46
+ expect(inp?.status).toBe('improved');
47
+ });
48
+ it('| regressionsOnly — szűr', () => {
49
+ const oldR = { summary: { lcp: { p75: 2000 }, cls: { p75: 0.05 } } };
50
+ const newR = { summary: { lcp: { p75: 3000 }, cls: { p75: 0.05 } } };
51
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
52
+ const regressions = cwv_comparison_util_1.DyE2E_CWVComparison_Util.regressionsOnly(result);
53
+ expect(regressions.length).toBe(1);
54
+ expect(regressions[0].metric).toBe(cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
55
+ });
56
+ it('| formatMarkdownTable — header + row markdown', () => {
57
+ const oldR = { summary: { lcp: { p75: 2000 } } };
58
+ const newR = { summary: { lcp: { p75: 3000 } } };
59
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
60
+ const md = cwv_comparison_util_1.DyE2E_CWVComparison_Util.formatMarkdownTable(result);
61
+ expect(md).toContain('| Metric | Old p75 | New p75 | Delta | Δ% | Status |');
62
+ expect(md).toContain('LCP');
63
+ expect(md).toContain('🔴');
64
+ expect(md).toContain('regressed');
65
+ });
66
+ it('| formatMarkdownTable — üres → "_No comparable metrics._"', () => {
67
+ const md = cwv_comparison_util_1.DyE2E_CWVComparison_Util.formatMarkdownTable([]);
68
+ expect(md).toBe('_No comparable metrics._');
69
+ });
70
+ it('| NaN p75 → metric kihagyva', () => {
71
+ const oldR = { summary: { lcp: { p75: 2000 }, cls: {} } };
72
+ const newR = { summary: { lcp: { p75: 2100 }, cls: { p75: 0.1 } } };
73
+ const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
74
+ expect(result.length).toBe(1); // csak lcp, mert cls.oldP75 NaN
75
+ });
76
+ });
77
+ //# sourceMappingURL=cwv-comparison.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-comparison.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-comparison.spec.ts"],"names":[],"mappings":";;AAAA,mFAAgF;AAChF,4EAAqG;AAErG,QAAQ,CAAC,6CAA6C,EAAE,GAAS,EAAE;IAEjE,EAAE,CAAC,sCAAsC,EAAE,GAAS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WAAW,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAS,EAAE;QACzE,MAAM,EAAE,GAAW,8CAAwB,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAS,EAAE;QAC3C,MAAM,IAAI,GAA0B,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC;QACjF,MAAM,IAAI,GAA0B,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;QAC3F,MAAM,MAAM,GAAG,8CAAwB,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC;IACjE,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cwv-summarize.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-summarize.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-summarize.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cwv_summarize_util_1 = require("./_collections/cwv-summarize.util");
4
+ describe('| dynamo-e2e | CWV Summarize Util (Wave-3)', () => {
5
+ describe('| toMarkdown', () => {
6
+ it('| üres summary → csak header + tabla-header', () => {
7
+ const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown({ route: '/x' });
8
+ expect(md).toContain('CWV summary — /x');
9
+ expect(md).toContain('| Metric | n | p50 | p75 | p95 | Target | Status |');
10
+ });
11
+ it('| lcp passing → 🟢', () => {
12
+ const report = {
13
+ route: '/home',
14
+ summary: { lcp: { n: 5, p50: 1500, p75: 2000, p95: 2400 } },
15
+ };
16
+ const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
17
+ expect(md).toContain('🟢');
18
+ expect(md).toContain('LCP');
19
+ expect(md).toContain('2000.00ms');
20
+ });
21
+ it('| lcp failing → 🔴', () => {
22
+ const report = {
23
+ route: '/home',
24
+ summary: { lcp: { n: 5, p75: 4000 } },
25
+ };
26
+ const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
27
+ expect(md).toContain('🔴');
28
+ });
29
+ it('| n=0 metrik kihagyva', () => {
30
+ const report = {
31
+ summary: { lcp: { n: 0 }, cls: { n: 3, p75: 0.05 } },
32
+ };
33
+ const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
34
+ expect(md).not.toContain('| LCP |');
35
+ expect(md).toContain('| CLS |');
36
+ });
37
+ it('| route opcionalis — "unknown route" default', () => {
38
+ const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown({});
39
+ expect(md).toContain('unknown route');
40
+ });
41
+ });
42
+ describe('| toJsonSummary', () => {
43
+ it('| üres summary → minden no-data', () => {
44
+ const json = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary({});
45
+ expect(json.lcp.status).toBe('no-data');
46
+ expect(json.cls.status).toBe('no-data');
47
+ expect(json.inp.status).toBe('no-data');
48
+ });
49
+ it('| lcp pass + cls fail egyszerre', () => {
50
+ const report = {
51
+ summary: { lcp: { n: 5, p75: 2000 }, cls: { n: 5, p75: 0.3 } },
52
+ };
53
+ const json = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report);
54
+ expect(json.lcp.status).toBe('pass');
55
+ expect(json.lcp.p75).toBe(2000);
56
+ expect(json.cls.status).toBe('fail');
57
+ expect(json.cls.p75).toBe(0.3);
58
+ });
59
+ it('| custom thresholds figyelembe vesz', () => {
60
+ const report = {
61
+ summary: { lcp: { n: 5, p75: 3000 } },
62
+ };
63
+ const stricter = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report, { lcp_p75_ms: 2000 });
64
+ expect(stricter.lcp.status).toBe('fail');
65
+ const looser = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report, { lcp_p75_ms: 4000 });
66
+ expect(looser.lcp.status).toBe('pass');
67
+ });
68
+ });
69
+ });
70
+ //# sourceMappingURL=cwv-summarize.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwv-summarize.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-summarize.spec.ts"],"names":[],"mappings":";;AAAA,0EAAsG;AAEtG,QAAQ,CAAC,4CAA4C,EAAE,GAAS,EAAE;IAEhE,QAAQ,CAAC,cAAc,EAAE,GAAS,EAAE;QAElC,EAAE,CAAC,6CAA6C,EAAE,GAAS,EAAE;YAC3D,MAAM,EAAE,GAAW,4CAAuB,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACvE,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;YACzC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,oDAAoD,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,GAAS,EAAE;YAClC,MAAM,MAAM,GAA6B;gBACvC,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;aA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,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,GAAS,EAAE;YACnD,MAAM,MAAM,GAA6B;gBACvC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;aACtC,CAAC;YACF,MAAM,QAAQ,GAAG,4CAAuB,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YACrF,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzC,MAAM,MAAM,GAAG,4CAAuB,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YACnF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -2,8 +2,10 @@
2
2
  * `@futdevpro/dynamo-e2e/cwv` — Core Web Vitals diagnostics (Wave-3).
3
3
  */
4
4
  export * from './_collections/cwv-aggregator.util';
5
+ export * from './_collections/cwv-comparison.util';
5
6
  export * from './_collections/cwv-diagnose.util';
6
7
  export * from './_collections/cwv-emission.util';
8
+ export * from './_collections/cwv-summarize.util';
7
9
  export * from './_collections/inp-interaction-script.const';
8
10
  export * from './_collections/web-vitals-page-script.const';
9
11
  export * from './_models/index';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,iBAAiB,EAAE,MAAuB,CAAC"}
@@ -19,8 +19,10 @@ exports.DYE2E_CWV_VERSION = void 0;
19
19
  * `@futdevpro/dynamo-e2e/cwv` — Core Web Vitals diagnostics (Wave-3).
20
20
  */
21
21
  __exportStar(require("./_collections/cwv-aggregator.util"), exports);
22
+ __exportStar(require("./_collections/cwv-comparison.util"), exports);
22
23
  __exportStar(require("./_collections/cwv-diagnose.util"), exports);
23
24
  __exportStar(require("./_collections/cwv-emission.util"), exports);
25
+ __exportStar(require("./_collections/cwv-summarize.util"), exports);
24
26
  __exportStar(require("./_collections/inp-interaction-script.const"), exports);
25
27
  __exportStar(require("./_collections/web-vitals-page-script.const"), exports);
26
28
  __exportStar(require("./_models/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/cwv/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qEAAmD;AACnD,mEAAiD;AACjD,mEAAiD;AACjD,8EAA4D;AAC5D,8EAA4D;AAC5D,kDAAgC;AAChC,wDAAsC;AAEzB,QAAA,iBAAiB,GAAW,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/cwv/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qEAAmD;AACnD,qEAAmD;AACnD,mEAAiD;AACjD,mEAAiD;AACjD,oEAAkD;AAClD,8EAA4D;AAC5D,8EAA4D;AAC5D,kDAAgC;AAChC,wDAAsC;AAEzB,QAAA,iBAAiB,GAAW,cAAc,CAAC"}
@@ -10,6 +10,11 @@ export declare class DyE2E_CliRunner_Util {
10
10
  flags: Record<string, string>;
11
11
  };
12
12
  static helpText(): string;
13
+ /**
14
+ * Bootstrap scaffold — visszaadja a generálandó fájlok mappáját
15
+ * ({ path → content }), a CLI ezeket beírja.
16
+ */
17
+ static bootstrapFiles(): Record<string, string>;
13
18
  /**
14
19
  * Doctor parancs — projekt-config-validáció.
15
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"cli-runner.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/generators/_collections/cli-runner.util.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,qBAAa,oBAAoB;IAE/B,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE;IAsBpF,MAAM,CAAC,QAAQ,IAAI,MAAM;IAkCzB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;QAAE,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;QAAC,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;KAAE,GAAG;QAC9H,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,mBAAmB,EAAE,OAAO,CAAC;QAC7B,SAAS,EAAE,OAAO,CAAC;QACnB,aAAa,EAAE,OA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