@immense/vue-pom-generator 1.0.91 → 1.0.93

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 (66) hide show
  1. package/README.md +76 -2
  2. package/RELEASE_NOTES.md +22 -22
  3. package/class-generation/base-page.ts +141 -59
  4. package/class-generation/diagnostics.ts +559 -0
  5. package/class-generation/index.ts +123 -21
  6. package/class-generation/playwright-types.ts +7 -11
  7. package/class-generation/pointer.ts +65 -18
  8. package/dist/class-generation/base-page.d.ts +19 -4
  9. package/dist/class-generation/base-page.d.ts.map +1 -1
  10. package/dist/class-generation/diagnostics.d.ts +110 -0
  11. package/dist/class-generation/diagnostics.d.ts.map +1 -0
  12. package/dist/class-generation/index.d.ts +3 -0
  13. package/dist/class-generation/index.d.ts.map +1 -1
  14. package/dist/class-generation/playwright-types.d.ts +3 -39
  15. package/dist/class-generation/playwright-types.d.ts.map +1 -1
  16. package/dist/class-generation/pointer.d.ts +10 -1
  17. package/dist/class-generation/pointer.d.ts.map +1 -1
  18. package/dist/eslint/index.cjs +52 -9
  19. package/dist/eslint/index.cjs.map +1 -1
  20. package/dist/eslint/index.d.ts +16 -7
  21. package/dist/eslint/index.d.ts.map +1 -1
  22. package/dist/eslint/index.mjs +52 -9
  23. package/dist/eslint/index.mjs.map +1 -1
  24. package/dist/index.cjs +419 -298
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.mjs +419 -298
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/manifest-generator.d.ts +10 -5
  29. package/dist/manifest-generator.d.ts.map +1 -1
  30. package/dist/method-generation.d.ts.map +1 -1
  31. package/dist/playwright/reporter.cjs +174 -0
  32. package/dist/playwright/reporter.cjs.map +1 -0
  33. package/dist/playwright/reporter.d.ts +13 -0
  34. package/dist/playwright/reporter.d.ts.map +1 -0
  35. package/dist/playwright/reporter.mjs +174 -0
  36. package/dist/playwright/reporter.mjs.map +1 -0
  37. package/dist/playwright/runtime.cjs +945 -0
  38. package/dist/playwright/runtime.cjs.map +1 -0
  39. package/dist/playwright/runtime.mjs +945 -0
  40. package/dist/playwright/runtime.mjs.map +1 -0
  41. package/dist/plugin/internal/build-plugin.d.ts +2 -0
  42. package/dist/plugin/internal/build-plugin.d.ts.map +1 -1
  43. package/dist/plugin/internal/dev-plugin.d.ts +2 -0
  44. package/dist/plugin/internal/dev-plugin.d.ts.map +1 -1
  45. package/dist/plugin/internal-plugins.d.ts.map +1 -1
  46. package/dist/route-navigation-codegen.d.ts +3 -1
  47. package/dist/route-navigation-codegen.d.ts.map +1 -1
  48. package/dist/router-bridge.d.ts +14 -0
  49. package/dist/router-bridge.d.ts.map +1 -1
  50. package/dist/router.cjs +41 -1
  51. package/dist/router.cjs.map +1 -1
  52. package/dist/router.mjs +41 -1
  53. package/dist/router.mjs.map +1 -1
  54. package/dist/tests/broad/helpers/fake-runtime.d.ts +27 -3
  55. package/dist/tests/broad/helpers/fake-runtime.d.ts.map +1 -1
  56. package/dist/tests/fixtures/generated-tsc/base-page.full.d.ts +16 -3
  57. package/dist/tests/fixtures/generated-tsc/base-page.full.d.ts.map +1 -1
  58. package/dist/tests/method-generation.test.d.ts +2 -0
  59. package/dist/tests/method-generation.test.d.ts.map +1 -0
  60. package/dist/tests/playwright-diagnostics.test.d.ts +2 -0
  61. package/dist/tests/playwright-diagnostics.test.d.ts.map +1 -0
  62. package/dist/tests/playwright-reporter.test.d.ts +2 -0
  63. package/dist/tests/playwright-reporter.test.d.ts.map +1 -0
  64. package/dist/transform.d.ts.map +1 -1
  65. package/dist/vite.config.d.ts.map +1 -1
  66. package/package.json +13 -1
@@ -9,6 +9,8 @@ import path from "node:path";
9
9
  import process from "node:process";
10
10
  import { fileURLToPath } from "node:url";
11
11
  import { generateViewObjectModelMembers, generateViewObjectModelMethodContent } from "../method-generation";
12
+ import { generatePomManifestModule } from "../manifest-generator";
13
+ import type { ElementMetadata } from "../metadata-collector";
12
14
  import {
13
15
  createPomMethodSignature,
14
16
  createPomParameterSpec,
@@ -469,12 +471,14 @@ function generateGoToMethod(componentName: string, routeMeta: RouteMeta | null):
469
471
  parameters: hasQuery ? [{ name: "params", type: paramType, hasQuestionToken: true }] : [],
470
472
  statements: route.name !== null
471
473
  ? createRouterNavigationWriter({
474
+ componentName,
472
475
  routeName: { kind: "single", target: route.name },
473
476
  input: hasQuery ? { identifier: "params", optional: true } : undefined,
474
477
  pathParamNames: [],
475
478
  queryNames: route.query,
476
479
  })
477
480
  : createUrlNavigationWriter({
481
+ componentName,
478
482
  routeTemplate: { kind: "single", target: route.template },
479
483
  input: hasQuery ? { identifier: "params", optional: true } : undefined,
480
484
  pathParams: [],
@@ -499,12 +503,14 @@ function generateGoToMethod(componentName: string, routeMeta: RouteMeta | null):
499
503
  parameters: [{ name: "params", type: paramType, hasQuestionToken: allOptional }],
500
504
  statements: route.name !== null
501
505
  ? createRouterNavigationWriter({
506
+ componentName,
502
507
  routeName: { kind: "single", target: route.name },
503
508
  input: { identifier: "params", optional: allOptional },
504
509
  pathParamNames: route.params.map(param => param.name),
505
510
  queryNames: route.query,
506
511
  })
507
512
  : createUrlNavigationWriter({
513
+ componentName,
508
514
  routeTemplate: { kind: "single", target: route.template },
509
515
  input: { identifier: "params", optional: allOptional },
510
516
  pathParams: route.params,
@@ -542,6 +548,7 @@ function generateGoToMethod(componentName: string, routeMeta: RouteMeta | null):
542
548
  parameters: [{ name: "params", type: implementationType, hasQuestionToken: true }],
543
549
  statements: usePush
544
550
  ? createRouterNavigationWriter({
551
+ componentName,
545
552
  routeName: {
546
553
  kind: "dual",
547
554
  parametrizedTarget: requireRouteName(parametrizedRoute),
@@ -553,6 +560,7 @@ function generateGoToMethod(componentName: string, routeMeta: RouteMeta | null):
553
560
  queryNames: hasQuery ? queryNames : [],
554
561
  })
555
562
  : createUrlNavigationWriter({
563
+ componentName,
556
564
  routeTemplate: {
557
565
  kind: "dual",
558
566
  parametrizedTarget: parametrizedRoute.template,
@@ -611,7 +619,7 @@ function generateExtraClickMethodMembers(spec: PomExtraClickMethodSpec, componen
611
619
  for (const statement of testIdBinding.setupStatements) {
612
620
  writer.writeLine(statement);
613
621
  }
614
- writer.writeLine(`await this.clickByTestId(${testIdBinding.expression}, ${annotationArg}, ${waitArg}, ${locatorDescription});`);
622
+ writer.writeLine(`await this.clickByTestId(${testIdBinding.expression}, ${annotationArg}, ${waitArg}, ${locatorDescription}, { componentName: ${JSON.stringify(componentName)}, methodName: ${JSON.stringify(spec.name)} });`);
615
623
  },
616
624
  }),
617
625
  ];
@@ -634,7 +642,7 @@ function generateExtraClickMethodMembers(spec: PomExtraClickMethodSpec, componen
634
642
  for (const statement of labelBinding.setupStatements) {
635
643
  writer.writeLine(statement);
636
644
  }
637
- writer.writeLine(`await this.clickWithinTestIdByLabel(${rootBinding.expression}, ${labelBinding.expression}, ${annotationArg}, ${waitArg}, { description: ${locatorDescription} });`);
645
+ writer.writeLine(`await this.clickWithinTestIdByLabel(${rootBinding.expression}, ${labelBinding.expression}, ${annotationArg}, ${waitArg}, { description: ${locatorDescription}, componentName: ${JSON.stringify(componentName)}, methodName: ${JSON.stringify(spec.name)} });`);
638
646
  },
639
647
  }),
640
648
  ];
@@ -808,6 +816,9 @@ export interface GenerateFilesOptions {
808
816
  layoutDirs?: string[];
809
817
 
810
818
  routeMetaByComponent?: Record<string, RouteMeta>;
819
+
820
+ /** Metadata used by the generated Node-importable POM discoverability manifest. */
821
+ elementMetadata?: Map<string, Map<string, ElementMetadata>>;
811
822
  }
812
823
 
813
824
  interface BaseGenerateContentOptions {
@@ -872,6 +883,7 @@ export async function generateFiles(
872
883
  componentDirs,
873
884
  layoutDirs,
874
885
  routeMetaByComponent: routeMetaByComponentOverride,
886
+ elementMetadata = new Map<string, Map<string, ElementMetadata>>(),
875
887
  } = options;
876
888
 
877
889
  const emitLanguages: Array<"ts" | "csharp"> = emitLanguagesOverride?.length
@@ -925,13 +937,15 @@ export async function generateFiles(
925
937
  writeGeneratedFile(file);
926
938
  }
927
939
 
928
- const fixtureRegistryFile = maybeGenerateFixtureRegistry(emittableComponentHierarchyMap, {
940
+ const fixtureRegistryFiles = maybeGenerateFixtureRegistry(emittableComponentHierarchyMap, {
929
941
  generateFixtures,
930
942
  pomOutDir: outDir,
931
943
  projectRoot,
932
944
  customPomDir,
945
+ elementMetadata,
946
+ testIdAttribute,
933
947
  });
934
- if (fixtureRegistryFile) {
948
+ for (const fixtureRegistryFile of fixtureRegistryFiles) {
935
949
  writeGeneratedFile(fixtureRegistryFile);
936
950
  }
937
951
  }
@@ -1540,11 +1554,13 @@ function maybeGenerateFixtureRegistry(
1540
1554
  pomOutDir: string;
1541
1555
  projectRoot?: string;
1542
1556
  customPomDir?: string;
1557
+ elementMetadata: Map<string, Map<string, ElementMetadata>>;
1558
+ testIdAttribute?: string;
1543
1559
  },
1544
- ): GeneratedFileOutput | null {
1560
+ ): GeneratedFileOutput[] {
1545
1561
  const { generateFixtures, pomOutDir } = options;
1546
1562
  if (!generateFixtures)
1547
- return null;
1563
+ return [];
1548
1564
 
1549
1565
  // generateFixtures accepts:
1550
1566
  // - true: enable fixtures with defaults
@@ -1576,6 +1592,10 @@ function maybeGenerateFixtureRegistry(
1576
1592
  const pomDirAbs = path.isAbsolute(pomOutDir) ? pomOutDir : path.resolve(root, pomOutDir);
1577
1593
 
1578
1594
  const pomImport = toPosixRelativePath(fixtureOutDirAbs, pomDirAbs);
1595
+ const diagnosticsImport = stripExtension(toPosixRelativePath(
1596
+ fixtureOutDirAbs,
1597
+ path.join(pomDirAbs, "_pom-runtime", "class-generation", "diagnostics.ts"),
1598
+ ));
1579
1599
 
1580
1600
  const viewClassNames = Array.from(componentHierarchyMap.entries())
1581
1601
  .filter(([, deps]) => !!deps.isView)
@@ -1591,6 +1611,7 @@ function maybeGenerateFixtureRegistry(
1591
1611
  "request",
1592
1612
  // Our own fixtureOptions
1593
1613
  "animation",
1614
+ "pomDiagnostics",
1594
1615
  ]);
1595
1616
 
1596
1617
  const viewFixtureNames = new Set(viewClassNames.map(name => lowerFirst(name)));
@@ -1653,13 +1674,27 @@ function maybeGenerateFixtureRegistry(
1653
1674
  namedImports: [
1654
1675
  { name: "Page", alias: "PwPage" },
1655
1676
  "PlaywrightTestArgs",
1677
+ "TestInfo",
1656
1678
  "TestType",
1657
1679
  ],
1658
1680
  });
1681
+ addNamedImport(sourceFile, {
1682
+ moduleSpecifier: diagnosticsImport,
1683
+ namedImports: ["installPomFailureDiagnostics"],
1684
+ });
1685
+ addNamedImport(sourceFile, {
1686
+ moduleSpecifier: diagnosticsImport,
1687
+ isTypeOnly: true,
1688
+ namedImports: ["PomFailureDiagnosticsOptions"],
1689
+ });
1659
1690
  sourceFile.addImportDeclaration({
1660
1691
  namespaceImport: "Pom",
1661
1692
  moduleSpecifier: pomImport,
1662
1693
  });
1694
+ addNamedImport(sourceFile, {
1695
+ moduleSpecifier: "./pom-manifest.g",
1696
+ namedImports: ["pomManifest"],
1697
+ });
1663
1698
  for (const entry of overrideCtorEntries) {
1664
1699
  addNamedImport(sourceFile, {
1665
1700
  moduleSpecifier: entry.importSpecifier,
@@ -1673,6 +1708,9 @@ function maybeGenerateFixtureRegistry(
1673
1708
  properties: [{
1674
1709
  name: "animation",
1675
1710
  type: "Pom.PlaywrightAnimationOptions",
1711
+ }, {
1712
+ name: "pomDiagnostics",
1713
+ type: "PomFailureDiagnosticsOptions",
1676
1714
  }],
1677
1715
  });
1678
1716
  sourceFile.addTypeAlias({
@@ -1699,6 +1737,10 @@ function maybeGenerateFixtureRegistry(
1699
1737
  name: "PomFactoryFixture",
1700
1738
  type: "{ pomFactory: PomFactory }",
1701
1739
  });
1740
+ sourceFile.addTypeAlias({
1741
+ name: "PomDiagnosticsSetupFixture",
1742
+ type: "{ pomDiagnosticsSetup: void }",
1743
+ });
1702
1744
 
1703
1745
  sourceFile.addVariableStatement({
1704
1746
  declarationKind: VariableDeclarationKind.Const,
@@ -1748,7 +1790,7 @@ function maybeGenerateFixtureRegistry(
1748
1790
  description: "Every fixture contributed by the generator: the `animation` option, the internal\n"
1749
1791
  + "`pomSetup`/`pomFactory` fixtures, and one fixture per generated page/component POM.",
1750
1792
  }],
1751
- type: "PlaywrightOptions & PomSetupFixture & PomFactoryFixture & GeneratedPageFixtures & GeneratedComponentFixtures",
1793
+ type: "PlaywrightOptions & PomSetupFixture & PomFactoryFixture & PomDiagnosticsSetupFixture & GeneratedPageFixtures & GeneratedComponentFixtures",
1752
1794
  });
1753
1795
 
1754
1796
  sourceFile.addFunction({
@@ -1802,10 +1844,12 @@ function maybeGenerateFixtureRegistry(
1802
1844
  writer.block(() => {
1803
1845
  writer.writeLine("animation: [{");
1804
1846
  writer.indent(() => {
1847
+ writer.writeLine("enabled: false,");
1805
1848
  writer.writeLine('pointer: { durationMilliseconds: 250, transitionStyle: "ease-in-out", clickDelayMilliseconds: 0 },');
1806
1849
  writer.writeLine("keyboard: { typeDelayMilliseconds: 100 },");
1807
1850
  });
1808
1851
  writer.writeLine("}, { option: true }],");
1852
+ writer.writeLine(`pomDiagnostics: [{ captureBudgetMs: 5_000, testIdAttribute: ${JSON.stringify(options.testIdAttribute ?? "data-testid")} }, { option: true }],`);
1809
1853
  // The fixture callbacks are annotated explicitly rather than relying on
1810
1854
  // contextual typing: `base` is generic here, so TypeScript cannot resolve
1811
1855
  // Playwright's `Fixtures<...>` parameter types and the callbacks would
@@ -1816,6 +1860,20 @@ function maybeGenerateFixtureRegistry(
1816
1860
  writer.writeLine("await use();");
1817
1861
  });
1818
1862
  writer.writeLine("}, { auto: true }],");
1863
+ writer.writeLine("pomDiagnosticsSetup: [async ({ page, pomDiagnostics }: { page: PwPage; pomDiagnostics: PomFailureDiagnosticsOptions }, use: (r: void) => Promise<void>, testInfo: TestInfo) => {");
1864
+ writer.indent(() => {
1865
+ writer.writeLine("const capture = installPomFailureDiagnostics(page, pomManifest, testInfo, pomDiagnostics);");
1866
+ writer.writeLine("try {");
1867
+ writer.indent(() => writer.writeLine("await use();"));
1868
+ writer.writeLine("} finally {");
1869
+ writer.indent(() => {
1870
+ writer.writeLine("if (testInfo.status !== undefined && testInfo.status !== testInfo.expectedStatus) {");
1871
+ writer.indent(() => writer.writeLine("await capture.capture().catch(() => undefined);"));
1872
+ writer.writeLine("}");
1873
+ });
1874
+ writer.writeLine("}");
1875
+ });
1876
+ writer.writeLine("}, { auto: true }],");
1819
1877
  writer.writeLine("pomFactory: async ({ page }: { page: PwPage }, use: (r: PomFactory) => Promise<void>) => {");
1820
1878
  writer.indent(() => {
1821
1879
  writer.writeLine("await use({");
@@ -1847,10 +1905,32 @@ function maybeGenerateFixtureRegistry(
1847
1905
  }),
1848
1906
  });
1849
1907
 
1850
- return {
1851
- filePath: path.resolve(fixtureOutDirAbs, fixtureFileName),
1852
- content: fixturesContent,
1853
- };
1908
+ const manifestFileName = "pom-manifest.g.ts";
1909
+ const manifestContent = generatePomManifestModule(
1910
+ componentHierarchyMap,
1911
+ options.elementMetadata,
1912
+ manifestFileName,
1913
+ );
1914
+ const [diagnosticsRuntimeFile] = buildRuntimeGeneratedFilesFromSpecs([{
1915
+ absolutePath: resolvePluginAsset("../class-generation/diagnostics.ts"),
1916
+ description: "diagnostics.ts",
1917
+ outputPath: path.join(pomDirAbs, "_pom-runtime", "class-generation", "diagnostics.ts"),
1918
+ }]);
1919
+ if (!diagnosticsRuntimeFile) {
1920
+ throw new Error("[vue-pom-generator] Failed to generate the Playwright diagnostics runtime.");
1921
+ }
1922
+
1923
+ return [
1924
+ {
1925
+ filePath: path.resolve(fixtureOutDirAbs, fixtureFileName),
1926
+ content: fixturesContent,
1927
+ },
1928
+ {
1929
+ filePath: path.resolve(fixtureOutDirAbs, manifestFileName),
1930
+ content: manifestContent,
1931
+ },
1932
+ diagnosticsRuntimeFile,
1933
+ ];
1854
1934
 
1855
1935
  // No pomFixture is generated; goToSelf is emitted directly on each view POM.
1856
1936
  }
@@ -1895,6 +1975,33 @@ function prepareViewObjectModelClass(
1895
1975
  return match;
1896
1976
  };
1897
1977
 
1978
+ const hasGeneratedPomSurface = (value: string, seen = new Set<string>()): boolean => {
1979
+ const resolvedRef = resolveTrackedComponentRef(value);
1980
+ if (!resolvedRef || seen.has(resolvedRef)) {
1981
+ return false;
1982
+ }
1983
+
1984
+ const resolvedDependencies = componentHierarchyMap.get(resolvedRef);
1985
+ if (!resolvedDependencies) {
1986
+ return false;
1987
+ }
1988
+
1989
+ if (
1990
+ resolvedDependencies.dataTestIdSet.size > 0
1991
+ || (resolvedDependencies.pomExtraMethods?.length ?? 0) > 0
1992
+ || (resolvedDependencies.generatedMethods?.size ?? 0) > 0
1993
+ ) {
1994
+ return true;
1995
+ }
1996
+
1997
+ const nextSeen = new Set(seen);
1998
+ nextSeen.add(resolvedRef);
1999
+ const nestedRefs = resolvedDependencies.usedComponentSet?.size
2000
+ ? resolvedDependencies.usedComponentSet
2001
+ : resolvedDependencies.childrenComponentSet;
2002
+ return Array.from(nestedRefs).some(child => hasGeneratedPomSurface(child, nextSeen));
2003
+ };
2004
+
1898
2005
  const rawComponentRefsForInstances = usedComponentSet?.size
1899
2006
  ? usedComponentSet
1900
2007
  : childrenComponentSet;
@@ -1913,8 +2020,7 @@ function prepareViewObjectModelClass(
1913
2020
  if (isSelfReference(resolvedRef)) {
1914
2021
  continue;
1915
2022
  }
1916
- const resolvedDependencies = componentHierarchyMap.get(resolvedRef);
1917
- if (!resolvedDependencies?.dataTestIdSet.size) {
2023
+ if (!hasGeneratedPomSurface(resolvedRef, new Set([componentName]))) {
1918
2024
  continue;
1919
2025
  }
1920
2026
  componentRefsForInstances.add(resolvedRef);
@@ -1973,7 +2079,6 @@ function prepareViewObjectModelClass(
1973
2079
 
1974
2080
  const className = toPascalCaseLocal(componentName);
1975
2081
  const childInstancePropertyNames = Array.from(componentRefsForInstances)
1976
- .filter(child => componentHierarchyMap.has(child) && componentHierarchyMap.get(child)?.dataTestIdSet.size)
1977
2082
  .map(child => child.split(".vue")[0]);
1978
2083
  const blockedViewPassthroughMethodNames = new Set(
1979
2084
  attachmentsForThisClass
@@ -2107,10 +2212,7 @@ function generateViewObjectModelContent(
2107
2212
 
2108
2213
  for (const child of prepared.componentRefsForInstances) {
2109
2214
  const childName = child.endsWith(".vue") ? child.slice(0, -4) : child;
2110
- const childDeps = componentHierarchyMap.get(child) ?? componentHierarchyMap.get(childName);
2111
- if (childDeps?.dataTestIdSet.size) {
2112
- addGeneratedImport(childName);
2113
- }
2215
+ addGeneratedImport(childName);
2114
2216
  }
2115
2217
 
2116
2218
  const targetClassNames = Array.from(
@@ -2565,7 +2667,7 @@ function getRuntimeGeneratedAssetSpecs(baseDir: string, basePageClassPath: strin
2565
2667
  const runtimeClassGenSourceDir = resolvePluginAsset("../class-generation");
2566
2668
  const runtimeClassGenFiles = fs.readdirSync(runtimeClassGenSourceDir)
2567
2669
  .filter(file => file.endsWith(".ts"))
2568
- .filter(file => file !== "base-page.ts" && file !== "index.ts")
2670
+ .filter(file => file !== "base-page.ts" && file !== "diagnostics.ts" && file !== "index.ts")
2569
2671
  .sort((left, right) => left.localeCompare(right));
2570
2672
 
2571
2673
  return [
@@ -3154,7 +3256,7 @@ function getComponentInstances(
3154
3256
  }
3155
3257
 
3156
3258
  childrenComponent.forEach((child) => {
3157
- if (componentHierarchyMap.has(child) && componentHierarchyMap.get(child)?.dataTestIdSet.size) {
3259
+ if (componentHierarchyMap.has(child)) {
3158
3260
  const childName = child.split(".vue")[0];
3159
3261
  declarations.push(createClassProperty({
3160
3262
  name: childName,
@@ -3191,7 +3293,7 @@ function getConstructor(
3191
3293
  }
3192
3294
 
3193
3295
  childrenComponent.forEach((child) => {
3194
- if (componentHierarchyMap.has(child) && componentHierarchyMap.get(child)?.dataTestIdSet.size) {
3296
+ if (componentHierarchyMap.has(child)) {
3195
3297
  const childName = child.split(".vue")[0];
3196
3298
  writer.writeLine(`this.${childName} = new ${childName}(page);`);
3197
3299
  }
@@ -70,7 +70,12 @@ export interface BasePageLocator {
70
70
  options?: { force?: boolean; noWaitAfter?: boolean; timeout?: number },
71
71
  ): Promise<string[]>;
72
72
  type(text: string, options?: { delay?: number; noWaitAfter?: boolean; timeout?: number }): Promise<void>;
73
- evaluate<R>(pageFunction: (element: { tagName: string; isContentEditable?: boolean }) => R | Promise<R>): Promise<R>;
73
+ evaluate<R>(pageFunction: (element: {
74
+ tagName: string;
75
+ isContentEditable?: boolean;
76
+ parentElement?: Element | null;
77
+ getAnimations?: () => Animation[];
78
+ }) => R | Promise<R>): Promise<R>;
74
79
  }
75
80
 
76
81
  /**
@@ -88,17 +93,8 @@ export interface BasePageLocator {
88
93
  */
89
94
  export interface BasePagePage {
90
95
  url(): string;
91
- goto(url: string, options?: { referer?: string; timeout?: number; waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" }): Promise<Response | null>;
96
+ goto(url: string, options?: { referer?: string; timeout?: number; waitUntil?: "load" | "domcontentloaded" | "commit" }): Promise<Response | null>;
92
97
  locator(selector: string, options?: { has?: BasePageLocator; hasNot?: BasePageLocator; hasNotText?: string | RegExp; hasText?: string | RegExp }): BasePageLocator;
93
- isVisible(selector: string, options?: { strict?: boolean; timeout?: number }): Promise<boolean>;
94
- textContent(selector: string, options?: { strict?: boolean; timeout?: number }): Promise<string | null>;
95
- waitForSelector(selector: string, options?: { state?: "attached" | "detached" | "visible" | "hidden"; timeout?: number; strict?: boolean }): Promise<unknown>;
96
- hover(selector: string, options?: { force?: boolean; noWaitAfter?: boolean; position?: { x: number; y: number }; strict?: boolean; timeout?: number; trial?: boolean }): Promise<void>;
97
- selectOption(
98
- selector: string,
99
- values: null | string | ReadonlyArray<string> | { value?: string; label?: string; index?: number } | ReadonlyArray<{ value?: string; label?: string; index?: number }>,
100
- options?: { force?: boolean; noWaitAfter?: boolean; strict?: boolean; timeout?: number },
101
- ): Promise<string[]>;
102
98
  waitForTimeout(timeout: number): Promise<void>;
103
99
  evaluate<R, Arg = never>(pageFunction: string | ((arg: Arg) => R | Promise<R>), arg?: Arg): Promise<R>;
104
100
  readonly keyboard: Keyboard;
@@ -56,7 +56,7 @@ export interface PointerRenderer {
56
56
  export interface PlaywrightAnimationOptions {
57
57
  /**
58
58
  * Set to false to disable all animations and delays. Clicks/fills still happen.
59
- * Default: true
59
+ * Default: false
60
60
  */
61
61
  enabled?: boolean;
62
62
 
@@ -99,7 +99,7 @@ export interface PlaywrightAnimationOptions {
99
99
  }
100
100
 
101
101
  let animationOptions: PlaywrightAnimationOptions = {
102
- enabled: true,
102
+ enabled: false,
103
103
  extraDelayMs: 0,
104
104
  pointer: { durationMilliseconds: 250, transitionStyle: "ease-in-out", clickDelayMilliseconds: 0 },
105
105
  keyboard: { typeDelayMilliseconds: 100 },
@@ -107,7 +107,7 @@ let animationOptions: PlaywrightAnimationOptions = {
107
107
 
108
108
  export function setPlaywrightAnimationOptions(options: PlaywrightAnimationOptions): void {
109
109
  animationOptions = {
110
- enabled: options?.enabled ?? true,
110
+ enabled: options?.enabled ?? false,
111
111
  extraDelayMs: options?.extraDelayMs ?? 0,
112
112
  pointer: {
113
113
  durationMilliseconds: options?.pointer?.durationMilliseconds ?? 250,
@@ -259,6 +259,47 @@ export class Pointer {
259
259
  return trimmed || undefined;
260
260
  }
261
261
 
262
+ /**
263
+ * Playwright waits for an element's box to be stable, but a component library can
264
+ * still suppress pointer handlers while an ancestor overlay is finishing a CSS
265
+ * transition. Wait for finite animations on the target's ancestor chain so the
266
+ * generated action observes the same ready state a user sees. Infinite decorative
267
+ * animations are ignored, and a stuck finite animation fails within the shared 5s
268
+ * interaction budget instead of encouraging consumer-side sleeps.
269
+ */
270
+ private async waitForFiniteAncestorAnimations(locator: PwLocator): Promise<void> {
271
+ await locator.first().evaluate(async (element) => {
272
+ const timeoutMs = 5_000;
273
+ const animations = new Set<Animation>();
274
+ for (let current: typeof element | Element | null = element; current; current = current.parentElement ?? null) {
275
+ if (typeof current.getAnimations !== "function") continue;
276
+ for (const animation of current.getAnimations()) {
277
+ const iterations = Number(animation.effect?.getComputedTiming().iterations ?? 1);
278
+ if (animation.playState === "running" && Number.isFinite(iterations)) {
279
+ animations.add(animation);
280
+ }
281
+ }
282
+ }
283
+
284
+ if (animations.size === 0) return;
285
+
286
+ let timer: ReturnType<typeof setTimeout> | undefined;
287
+ try {
288
+ await Promise.race([
289
+ Promise.allSettled([...animations].map(animation => animation.finished)),
290
+ new Promise<never>((_resolve, reject) => {
291
+ timer = setTimeout(() => {
292
+ reject(new Error(`[vue-pom-generator] Timed out after ${timeoutMs}ms waiting for click-target animations to finish.`));
293
+ }, timeoutMs);
294
+ }),
295
+ ]);
296
+ }
297
+ finally {
298
+ if (timer !== undefined) clearTimeout(timer);
299
+ }
300
+ });
301
+ }
302
+
262
303
  private async isEditableElement(locator: PwLocator): Promise<boolean> {
263
304
  try {
264
305
  return await locator.first().evaluate((element) => {
@@ -309,32 +350,29 @@ export class Pointer {
309
350
  const locator = this.toLocator(target);
310
351
  const trimmedAnnotationText = annotationText.trim();
311
352
 
312
- try {
313
- await locator.first().scrollIntoViewIfNeeded();
314
- }
315
- catch {
316
- // Element may detach during navigation; let the subsequent action surface the error.
317
- }
318
-
319
353
  const opts = animationOptions;
320
354
  const animEnabled = opts.enabled !== false;
355
+ if (executeClick) {
356
+ await this.waitForFiniteAncestorAnimations(locator);
357
+ }
321
358
 
322
359
  if (!animEnabled) {
323
360
  if (trimmedAnnotationText) {
324
361
  await this.callout.showForElement(locator, trimmedAnnotationText);
325
362
  }
326
- else {
327
- await this.callout.hide();
328
- }
329
363
 
330
- // Fast path: no animations.
364
+ // Fast path: no animation or presentation DOM work. In ordinary test runs
365
+ // annotationText is empty, so touching the callout would add a page.evaluate
366
+ // that can outlive a navigation and obscure the real Playwright failure.
331
367
  const extraDelay = Math.max(0, opts.extraDelayMs ?? 0);
332
368
  if (extraDelay > 0) await this.page.waitForTimeout(extraDelay);
333
369
 
334
370
  let clickedTestId: string | undefined;
335
371
  if (executeClick) {
336
- try { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }
337
- await locator.first().click({ force: true });
372
+ if (options?.afterClick) {
373
+ try { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }
374
+ }
375
+ await locator.first().click();
338
376
  }
339
377
  if (options?.afterClick) {
340
378
  await options.afterClick({ testId: clickedTestId, instrumented: Boolean(clickedTestId) });
@@ -343,6 +381,13 @@ export class Pointer {
343
381
  }
344
382
 
345
383
  // --- Animated path ---
384
+ try {
385
+ await locator.first().scrollIntoViewIfNeeded();
386
+ }
387
+ catch {
388
+ // Element may detach during navigation; let the subsequent action surface the error.
389
+ }
390
+
346
391
  const moveDurationMs = opts.pointer?.durationMilliseconds ?? 250;
347
392
  const transitionStyle = opts.pointer?.transitionStyle ?? "ease-in-out";
348
393
  const clickDelayMs = opts.pointer?.clickDelayMilliseconds ?? 0;
@@ -404,8 +449,10 @@ export class Pointer {
404
449
  await this.renderer.press(this.page, { durationMilliseconds: pressDur });
405
450
  }
406
451
 
407
- try { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }
408
- await locator.first().click({ delay: clickDelayMs, force: true });
452
+ if (options?.afterClick) {
453
+ try { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }
454
+ }
455
+ await locator.first().click({ delay: clickDelayMs });
409
456
  }
410
457
 
411
458
  if (options?.afterClick) {
@@ -68,9 +68,12 @@ export declare class BasePage {
68
68
  constructor(page: PwPage, options?: BasePageOptions);
69
69
  get screencast(): Page["screencast"];
70
70
  private waitForTestIdClickEventAfter;
71
+ private getAfterPointerClick;
71
72
  protected selectorForTestId(testId: string): string;
72
73
  protected describeLocator(locator: Locator, description?: string): Locator;
73
74
  protected locatorByTestId(testId: string, description?: string): Locator;
75
+ protected resolveVisibleTestIdLocator(testIds: readonly string[], description: string, methodName: string, componentName?: string): Promise<Locator>;
76
+ protected recordPomAction(componentName: string | undefined, methodName: string, expectedTestIds: readonly string[]): void;
74
77
  protected locatorWithinTestIdByLabel(rootTestId: string, label: string, options?: {
75
78
  exact?: boolean;
76
79
  description?: string;
@@ -109,18 +112,30 @@ export declare class BasePage {
109
112
  * Clicks on an element with the specified data-testid
110
113
  * @param testId The data-testid of the element to click
111
114
  */
112
- clickByTestId(testId: string, annotationText?: string, wait?: boolean, description?: string): Promise<void>;
115
+ clickByTestId(testId: string, annotationText?: string, wait?: boolean, description?: string, action?: {
116
+ componentName?: string;
117
+ methodName: string;
118
+ preferAssociatedLabel?: boolean;
119
+ }): Promise<void>;
113
120
  clickLocator(locator: PwLocator, annotationText?: string, wait?: boolean): Promise<void>;
114
121
  protected clickWithinTestIdByLabel(rootTestId: string, label: string, annotationText?: string, wait?: boolean, options?: {
115
122
  exact?: boolean;
116
123
  description?: string;
124
+ componentName?: string;
125
+ methodName?: string;
126
+ }): Promise<void>;
127
+ protected fillInputByTestId(testId: string, text: string, annotationText?: string, description?: string, action?: {
128
+ componentName?: string;
129
+ methodName: string;
117
130
  }): Promise<void>;
118
- protected fillInputByTestId(testId: string, text: string, annotationText?: string, description?: string): Promise<void>;
119
131
  /**
120
132
  * Interacts with a vue-select control rooted by a data-testid.
121
133
  * This is emitted frequently by the generator; keeping it here reduces per-page duplicated code.
122
134
  */
123
- protected selectVSelectByTestId(testId: string, value: string, timeOut?: number, annotationText?: string, description?: string): Promise<void>;
135
+ protected selectVSelectByTestId(testId: string, value: string, annotationText?: string, description?: string, action?: {
136
+ componentName?: string;
137
+ methodName: string;
138
+ }): Promise<void>;
124
139
  fillInputByLocator(locator: PwLocator, text: string, annotationText?: string): Promise<void>;
125
140
  protected clickByAriaLabel(ariaLabel: string, annotationText?: string): Promise<void>;
126
141
  /**
@@ -145,7 +160,7 @@ export declare class BasePage {
145
160
  * Waits for an element with the specified data-testid to be visible
146
161
  * @param testId The data-testid of the element to wait for
147
162
  * @param options Optional timeout and other options
148
- * @param options.timeout The maximum time to wait for the element to be visible (default is 3000ms)
163
+ * @param options.timeout The maximum time to wait for the element to be visible (default is 5000ms)
149
164
  * @returns A promise that resolves when the element is visible
150
165
  */
151
166
  protected waitForTestId(testId: string, options?: {
@@ -1 +1 @@
1
- {"version":3,"file":"base-page.d.ts","sourceRoot":"","s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