@immense/vue-pom-generator 1.0.85 → 1.0.86
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/RELEASE_NOTES.md +46 -55
- package/class-generation/base-page.ts +37 -10
- package/class-generation/index.ts +12 -2
- package/class-generation/playwright-types.ts +11 -3
- package/dist/class-generation/base-page.d.ts +24 -7
- package/dist/class-generation/base-page.d.ts.map +1 -1
- package/dist/class-generation/playwright-types.d.ts +9 -2
- package/dist/class-generation/playwright-types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,77 +1,68 @@
|
|
|
1
|
-
I'll gather
|
|
1
|
+
I'll gather the actual data from the repository to determine which PRs fall within the release
|
|
2
|
+
window and what commits are in the compare range.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
Good - the compare range confirms only one commit (#52). Let me get the PR details for the release
|
|
5
|
+
window.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Let me try a different approach to get PR merge timestamps.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Now I can see the merge timestamps. Let me verify which commits are actually in the compare range
|
|
10
|
+
and check the v1.0.85 tag timing.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
template (#51)
|
|
13
|
-
- All route shapes are supported: paramless, required-param, all-optional-param, dual-route
|
|
14
|
-
overloads, and multi-param routes, with unnamed-route fallback to token substitution + page.goto
|
|
15
|
-
(#51)
|
|
16
|
-
- Cold-page navigation performs a full-load after router resolve to ensure interactive elements are
|
|
17
|
-
ready; warm-page uses pure SPA router.push with no reload (#51)
|
|
18
|
-
- router-introspection.ts now captures the Vue Router route name, enabling router.push/resolve by
|
|
19
|
-
name (#51)
|
|
20
|
-
- no-raw-playwright-apis ESLint rule now bans getByTestId as a raw locator-filter method (#49)
|
|
21
|
-
- Closes a computed-member bypass that let page["getByTestId"], page["locator"], and page["click"]
|
|
22
|
-
slip past the rule (#49)
|
|
12
|
+
Now I have clarity. v1.0.85 already included #51 and #49. Only #52 is new in v1.0.86. Let me examine
|
|
13
|
+
the actual diff to write accurate notes.
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
I now have a complete understanding of the changes. This release contains only PR #52. Let me verify
|
|
16
|
+
the tests pass to include accurate testing info.
|
|
25
17
|
|
|
26
|
-
|
|
18
|
+
I have all the information needed. The environment restricts running Node.js tests, but I've
|
|
19
|
+
thoroughly reviewed the diff. Here are the release notes:
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
via globalThis.__appRouter (dev-gated by import.meta.env.DEV) (#51)
|
|
30
|
-
- Generate correct signatures per route shape: no-arg goTo() for paramless, goTo(params: { id })
|
|
31
|
-
for required, goTo(params?: { id? }) for all-optional, overloaded goTo()/goTo(params) for dual
|
|
32
|
-
routes, and multi-param goTo(params: { orgId; userId }) (#51)
|
|
33
|
-
- Cold-page regime: boot with page.goto("/"), waitForFunction for the router, resolve the href,
|
|
34
|
-
then full-load it to guarantee interactive readiness before force-clicks (#51)
|
|
35
|
-
- Warm-page regime: pure SPA router.push({ name, params }) with no reload (#51)
|
|
21
|
+
Highlights
|
|
36
22
|
|
|
37
|
-
|
|
23
|
+
- Narrowed Playwright types (PwPage, PwLocator) no longer leak into generated POM public APIs —
|
|
24
|
+
consumers now see standard Playwright Page and Locator types throughout.
|
|
25
|
+
- BasePage.page is now a widened protected get getter backed by a private narrowed field, keeping
|
|
26
|
+
test doubles simple while surfacing full Playwright types to subclasses.
|
|
27
|
+
- Locator-returning accessors (locatorByTestId, keyedLocators, describeLocator,
|
|
28
|
+
locatorByTestIdGetByLabel) now return Playwright's full Locator, enabling
|
|
29
|
+
expect(page.SaveButton).toBeVisible() without type errors.
|
|
30
|
+
- Generated POMs construct child/custom POMs with this.page (full Page) instead of the
|
|
31
|
+
constructor's narrowed page parameter.
|
|
38
32
|
|
|
39
|
-
|
|
40
|
-
router.push/resolve by name; token substitution retained only as the unnamed-route fallback (#51)
|
|
33
|
+
Changes
|
|
41
34
|
|
|
42
|
-
|
|
35
|
+
Type System & Consumer Compatibility
|
|
43
36
|
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
37
|
+
- BasePage stores the page as a private _page: PwPage field and exposes it through a protected get
|
|
38
|
+
page(): Page getter that widens to Playwright's full Page type.
|
|
39
|
+
- Internal Callout and Pointer construction now uses the narrowed this._page; subclass-facing
|
|
40
|
+
access uses the widened this.page.
|
|
41
|
+
- screencast getter return type widened from PwPage["screencast"] to Page["screencast"].
|
|
42
|
+
- describeLocator, locatorByTestId, locatorByTestIdGetByLabel, and keyedLocators return
|
|
43
|
+
Playwright's full Locator instead of the narrowed PwLocator.
|
|
44
|
+
- PwLocator doc comment updated to clarify it is for internal parameters only; return types widen
|
|
45
|
+
at the boundary.
|
|
51
46
|
|
|
52
|
-
|
|
47
|
+
Code Generation
|
|
53
48
|
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
computed access to banned APIs, and negative cases for non-banned/dynamic computed access (#49)
|
|
49
|
+
- Generated POM constructors pass this.page to child widget and custom POM instances instead of the
|
|
50
|
+
raw page constructor parameter.
|
|
51
|
+
- Split stub POM constructors aligned to accept Playwright's full Page.
|
|
52
|
+
- Added inline comments documenting the narrowed-internal / widened-boundary type strategy.
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
Tests
|
|
61
55
|
|
|
62
|
-
|
|
56
|
+
- Updated class-generation-coverage.test.ts and generated-tsc.test.ts expectations to match
|
|
57
|
+
this.page usage in generated output.
|
|
63
58
|
|
|
64
59
|
Pull Requests Included
|
|
65
60
|
|
|
66
|
-
- ]8;id=md-
|
|
67
|
-
- ]8;id=md-diaq7t;https://github.com/immense/vue-pom-generator/pull/49#49 feat(eslint): ban getByTestId and close computed-member bypass in no-raw-playwright-apis]8;;]8;; ]8;;
|
|
68
|
-
(@dkattan)
|
|
61
|
+
- ]8;id=md-1h6t1wt;https://github.com/immense/vue-pom-generator/pull/52#52 — fix: make narrowed POM types consumer-compatible]8;;]8;; (by @dkattan)]8;;
|
|
69
62
|
|
|
70
63
|
Testing
|
|
71
64
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
broad/class-generation-base-page-ts) are environmental (jsdom under local vitest) and unrelated to
|
|
76
|
-
these changes (#49)
|
|
65
|
+
- Existing class-generation coverage and generated-tsc tests were updated to reflect the this.page
|
|
66
|
+
change; no new test suites were added. Test suite could not be independently re-run in this
|
|
67
|
+
environment.
|
|
77
68
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { Locator, Page } from "playwright";
|
|
1
2
|
import type { PwLocator, PwPage } from "./playwright-types";
|
|
3
|
+
|
|
2
4
|
import { TESTID_CLICK_EVENT_NAME } from "../click-instrumentation";
|
|
3
5
|
import type { TestIdClickEventDetail } from "../click-instrumentation";
|
|
4
6
|
import { Callout } from "./callout";
|
|
@@ -105,20 +107,42 @@ export class BasePage {
|
|
|
105
107
|
private readonly pointer: InstanceType<typeof Pointer>;
|
|
106
108
|
|
|
107
109
|
/**
|
|
108
|
-
*
|
|
110
|
+
* The narrowed Playwright page, stored privately. The narrowing (`PwPage` =
|
|
111
|
+
* `BasePagePage`) is what lets the unit-test `FakePage` double satisfy the
|
|
112
|
+
* constructor without stubbing ~250 `Page` members; it never escapes this
|
|
113
|
+
* class. Subclasses (generated and hand-written POMs) reach the page through
|
|
114
|
+
* the widened {@link BasePage.page} getter, which surfaces Playwright's full
|
|
115
|
+
* `Page` so custom POMs can use `getByRole`/`waitForResponse`/`waitForFunction`
|
|
116
|
+
* etc. for JS/DOM elements the generator can't key.
|
|
117
|
+
*/
|
|
118
|
+
private readonly _page: PwPage;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Playwright's full `Page`, exposed to subclasses. This is the single,
|
|
122
|
+
* sanctioned way generated/custom POMs touch the page — there is no separate
|
|
123
|
+
* `rawPage`. The narrowed storage (`_page`) is widened here; the value is a
|
|
124
|
+
* real `Page` at runtime.
|
|
125
|
+
*/
|
|
126
|
+
protected get page(): Page {
|
|
127
|
+
return this._page as unknown as Page;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param page - Playwright page object (narrowed `PwPage` so test doubles fit).
|
|
109
132
|
*/
|
|
110
|
-
public constructor(
|
|
133
|
+
public constructor(page: PwPage, options?: BasePageOptions) {
|
|
134
|
+
this._page = page;
|
|
111
135
|
this.testIdAttribute = (options?.testIdAttribute || "data-testid").trim() || "data-testid";
|
|
112
136
|
|
|
113
137
|
const pointerRenderer = options?.renderers?.pointer;
|
|
114
|
-
this.callout = new Callout(this.
|
|
138
|
+
this.callout = new Callout(this._page, {
|
|
115
139
|
extraOverlayIds: pointerRenderer?.overlayIds,
|
|
116
140
|
renderer: options?.renderers?.callout,
|
|
117
141
|
});
|
|
118
|
-
this.pointer = new Pointer(this.
|
|
142
|
+
this.pointer = new Pointer(this._page, this.testIdAttribute, this.callout, pointerRenderer);
|
|
119
143
|
}
|
|
120
144
|
|
|
121
|
-
public get screencast():
|
|
145
|
+
public get screencast(): Page["screencast"] {
|
|
122
146
|
return this.page.screencast;
|
|
123
147
|
}
|
|
124
148
|
|
|
@@ -232,12 +256,12 @@ export class BasePage {
|
|
|
232
256
|
return `[${this.testIdAttribute}="${testId}"]`;
|
|
233
257
|
}
|
|
234
258
|
|
|
235
|
-
protected describeLocator(locator:
|
|
259
|
+
protected describeLocator(locator: Locator, description?: string): Locator {
|
|
236
260
|
const normalizedDescription = description?.trim();
|
|
237
261
|
return normalizedDescription ? locator.describe(normalizedDescription) : locator;
|
|
238
262
|
}
|
|
239
263
|
|
|
240
|
-
protected locatorByTestId(testId: string, description?: string):
|
|
264
|
+
protected locatorByTestId(testId: string, description?: string): Locator {
|
|
241
265
|
return this.describeLocator(this.page.locator(this.selectorForTestId(testId)), description);
|
|
242
266
|
}
|
|
243
267
|
|
|
@@ -245,7 +269,7 @@ export class BasePage {
|
|
|
245
269
|
rootTestId: string,
|
|
246
270
|
label: string,
|
|
247
271
|
options?: { exact?: boolean; description?: string },
|
|
248
|
-
):
|
|
272
|
+
): Locator {
|
|
249
273
|
const locator = this.locatorByTestId(rootTestId).getByLabel(label, { exact: options?.exact ?? true });
|
|
250
274
|
return this.describeLocator(locator, options?.description);
|
|
251
275
|
}
|
|
@@ -282,7 +306,7 @@ export class BasePage {
|
|
|
282
306
|
* ergonomic accessors like:
|
|
283
307
|
* expect(page.SaveButton["MyKey"]).toBeVisible();
|
|
284
308
|
*/
|
|
285
|
-
protected keyedLocators<TKey extends string>(getLocator: (key: TKey) => PwLocator): Record<TKey,
|
|
309
|
+
protected keyedLocators<TKey extends string>(getLocator: (key: TKey) => PwLocator): Record<TKey, Locator> {
|
|
286
310
|
const handler: ProxyHandler<object> = {
|
|
287
311
|
get: (_t, prop) => {
|
|
288
312
|
// Avoid confusing Promise-like detection and ignore symbols.
|
|
@@ -293,7 +317,10 @@ export class BasePage {
|
|
|
293
317
|
},
|
|
294
318
|
};
|
|
295
319
|
|
|
296
|
-
|
|
320
|
+
// `getLocator` returns the narrowed `PwLocator` (so test doubles satisfy it), but each
|
|
321
|
+
// value is a real Playwright `Locator` at runtime. Widen the record's value type so
|
|
322
|
+
// generated keyed accessors can be passed to `expect(...)`.
|
|
323
|
+
return new Proxy({}, handler) as unknown as Record<TKey, Locator>;
|
|
297
324
|
}
|
|
298
325
|
|
|
299
326
|
public async getObjectId(options?: { timeoutMs?: number }): Promise<ObjectId> {
|
|
@@ -2040,6 +2040,11 @@ function generateViewObjectModelContent(
|
|
|
2040
2040
|
const basePageImport = path.relative(fromAbs, toAbs).replace(/\\/g, "/");
|
|
2041
2041
|
const basePageImportNoExt = stripExtension(basePageImport).replace(/\\/g, "/");
|
|
2042
2042
|
const basePageImportSpecifier = basePageImportNoExt.startsWith(".") ? basePageImportNoExt : `./${basePageImportNoExt}`;
|
|
2043
|
+
// Generated POM constructors take Playwright's full `Page` (not the narrowed `PwPage`):
|
|
2044
|
+
// `BasePage` widens `page` to the full `Page` for subclasses, so generated POMs construct
|
|
2045
|
+
// each other with `new Child(this.page)` where `this.page` is `Page`. Importing the
|
|
2046
|
+
// standard `Page` from `@playwright/test` keeps the narrowed types internal to the vendored
|
|
2047
|
+
// runtime — they never surface in generated output.
|
|
2043
2048
|
const needsPlaywrightPageImport = prepared.isView
|
|
2044
2049
|
|| prepared.attachmentsForThisClass.length > 0
|
|
2045
2050
|
|| prepared.componentRefsForInstances.size > 0
|
|
@@ -2448,6 +2453,8 @@ function renderSplitStubPomContent(options: {
|
|
|
2448
2453
|
});
|
|
2449
2454
|
|
|
2450
2455
|
return renderSourceFile(`${options.className}.ts`, (sourceFile) => {
|
|
2456
|
+
// Stub ctors take Playwright's full `Page` (aliased `PwPage`), matching non-stub generated
|
|
2457
|
+
// POMs — stubs are constructed with `new Stub(this.page)` where `this.page` is `Page`.
|
|
2451
2458
|
addNamedImport(sourceFile, {
|
|
2452
2459
|
moduleSpecifier: "@playwright/test",
|
|
2453
2460
|
isTypeOnly: true,
|
|
@@ -3161,11 +3168,14 @@ function getConstructor(
|
|
|
3161
3168
|
writer.writeLine(`super(page, { testIdAttribute: ${JSON.stringify(attr)} });`);
|
|
3162
3169
|
|
|
3163
3170
|
for (const a of attachmentsForThisView) {
|
|
3164
|
-
|
|
3171
|
+
// Hand-written (custom) POMs are declared against Playwright's full `Page`.
|
|
3172
|
+
// `this.page` already surfaces the full `Page` (BasePage widens it for
|
|
3173
|
+
// subclasses), so pass it straight through — no separate raw-page accessor.
|
|
3174
|
+
writer.writeLine(`this.${a.propertyName} = new ${a.className}(this.page, this);`);
|
|
3165
3175
|
}
|
|
3166
3176
|
|
|
3167
3177
|
for (const w of widgetInstances) {
|
|
3168
|
-
writer.writeLine(`this.${w.propertyName} = new ${w.className}(page, ${JSON.stringify(w.testId)});`);
|
|
3178
|
+
writer.writeLine(`this.${w.propertyName} = new ${w.className}(this.page, ${JSON.stringify(w.testId)});`);
|
|
3169
3179
|
}
|
|
3170
3180
|
|
|
3171
3181
|
childrenComponent.forEach((child) => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Keyboard, Response, Screencast } from "playwright";
|
|
1
|
+
import type { Keyboard, Locator, Response, Screencast } from "playwright";
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Narrow subset of the Playwright {@link Locator} surface that the generated
|
|
@@ -113,8 +114,15 @@ export type PwPage = BasePagePage;
|
|
|
113
114
|
|
|
114
115
|
/**
|
|
115
116
|
* Locator type used by the generated POM runtime. Narrowed from Playwright's
|
|
116
|
-
* full `Locator` to {@link BasePageLocator}
|
|
117
|
-
* assignable.
|
|
117
|
+
* full `Locator` to {@link BasePageLocator} so test doubles can satisfy it
|
|
118
|
+
* without stubbing ~70 members. A real `Locator` is still assignable.
|
|
119
|
+
*
|
|
120
|
+
* Note: this narrowed type is used for the runtime's *internal* parameters
|
|
121
|
+
* (what doubles must satisfy). The locator-*returning* accessors
|
|
122
|
+
* (`locatorByTestId`, `keyedLocators`, …) widen back to Playwright's full
|
|
123
|
+
* `Locator` at the boundary so generated accessors can be passed straight to
|
|
124
|
+
* `expect(...)` (`expect(page.SaveButton).toBeVisible()`) — Playwright's
|
|
125
|
+
* `LocatorAssertions` matchers are keyed on `Locator`.
|
|
118
126
|
*/
|
|
119
127
|
export type PwLocator = BasePageLocator;
|
|
120
128
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Locator, Page } from "playwright";
|
|
1
2
|
import type { PwLocator, PwPage } from "./playwright-types";
|
|
2
3
|
import type { CalloutRenderer } from "./callout";
|
|
3
4
|
import { type AfterPointerClick, type PointerRenderer } from "./pointer";
|
|
@@ -41,23 +42,39 @@ export declare class ObjectId {
|
|
|
41
42
|
* for all component-specific Page Object Models
|
|
42
43
|
*/
|
|
43
44
|
export declare class BasePage {
|
|
44
|
-
protected page: PwPage;
|
|
45
45
|
protected readonly testIdAttribute: string;
|
|
46
46
|
private readonly callout;
|
|
47
47
|
private readonly pointer;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The narrowed Playwright page, stored privately. The narrowing (`PwPage` =
|
|
50
|
+
* `BasePagePage`) is what lets the unit-test `FakePage` double satisfy the
|
|
51
|
+
* constructor without stubbing ~250 `Page` members; it never escapes this
|
|
52
|
+
* class. Subclasses (generated and hand-written POMs) reach the page through
|
|
53
|
+
* the widened {@link BasePage.page} getter, which surfaces Playwright's full
|
|
54
|
+
* `Page` so custom POMs can use `getByRole`/`waitForResponse`/`waitForFunction`
|
|
55
|
+
* etc. for JS/DOM elements the generator can't key.
|
|
56
|
+
*/
|
|
57
|
+
private readonly _page;
|
|
58
|
+
/**
|
|
59
|
+
* Playwright's full `Page`, exposed to subclasses. This is the single,
|
|
60
|
+
* sanctioned way generated/custom POMs touch the page — there is no separate
|
|
61
|
+
* `rawPage`. The narrowed storage (`_page`) is widened here; the value is a
|
|
62
|
+
* real `Page` at runtime.
|
|
63
|
+
*/
|
|
64
|
+
protected get page(): Page;
|
|
65
|
+
/**
|
|
66
|
+
* @param page - Playwright page object (narrowed `PwPage` so test doubles fit).
|
|
50
67
|
*/
|
|
51
68
|
constructor(page: PwPage, options?: BasePageOptions);
|
|
52
|
-
get screencast():
|
|
69
|
+
get screencast(): Page["screencast"];
|
|
53
70
|
private waitForTestIdClickEventAfter;
|
|
54
71
|
protected selectorForTestId(testId: string): string;
|
|
55
|
-
protected describeLocator(locator:
|
|
56
|
-
protected locatorByTestId(testId: string, description?: string):
|
|
72
|
+
protected describeLocator(locator: Locator, description?: string): Locator;
|
|
73
|
+
protected locatorByTestId(testId: string, description?: string): Locator;
|
|
57
74
|
protected locatorWithinTestIdByLabel(rootTestId: string, label: string, options?: {
|
|
58
75
|
exact?: boolean;
|
|
59
76
|
description?: string;
|
|
60
|
-
}):
|
|
77
|
+
}): Locator;
|
|
61
78
|
/**
|
|
62
79
|
* Animates the pointer to an element.
|
|
63
80
|
*/
|
|
@@ -72,7 +89,7 @@ export declare class BasePage {
|
|
|
72
89
|
* ergonomic accessors like:
|
|
73
90
|
* expect(page.SaveButton["MyKey"]).toBeVisible();
|
|
74
91
|
*/
|
|
75
|
-
protected keyedLocators<TKey extends string>(getLocator: (key: TKey) => PwLocator): Record<TKey,
|
|
92
|
+
protected keyedLocators<TKey extends string>(getLocator: (key: TKey) => PwLocator): Record<TKey, Locator>;
|
|
76
93
|
getObjectId(options?: {
|
|
77
94
|
timeoutMs?: number;
|
|
78
95
|
}): Promise<ObjectId>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-page.d.ts","sourceRoot":"","sources":["../../class-generation/base-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"base-page.d.ts","sourceRoot":"","sources":["../../class-generation/base-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAK5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAW,KAAK,iBAAiB,EAA8B,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAe9G;;;;;;;;GAQG;AACH;;;GAGG;AACH,KAAK,UAAU,CAAC,CAAC,EAAE,KAAK,SAAS,MAAM,IAAI;KACxC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,GACzD,CAAC,SAAS,aAAa,G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
|
@@ -249,8 +249,15 @@ export interface BasePagePage {
|
|
|
249
249
|
export type PwPage = BasePagePage;
|
|
250
250
|
/**
|
|
251
251
|
* Locator type used by the generated POM runtime. Narrowed from Playwright's
|
|
252
|
-
* full `Locator` to {@link BasePageLocator}
|
|
253
|
-
* assignable.
|
|
252
|
+
* full `Locator` to {@link BasePageLocator} so test doubles can satisfy it
|
|
253
|
+
* without stubbing ~70 members. A real `Locator` is still assignable.
|
|
254
|
+
*
|
|
255
|
+
* Note: this narrowed type is used for the runtime's *internal* parameters
|
|
256
|
+
* (what doubles must satisfy). The locator-*returning* accessors
|
|
257
|
+
* (`locatorByTestId`, `keyedLocators`, …) widen back to Playwright's full
|
|
258
|
+
* `Locator` at the boundary so generated accessors can be passed straight to
|
|
259
|
+
* `expect(...)` (`expect(page.SaveButton).toBeVisible()`) — Playwright's
|
|
260
|
+
* `LocatorAssertions` matchers are keyed on `Locator`.
|
|
254
261
|
*/
|
|
255
262
|
export type PwLocator = BasePageLocator;
|
|
256
263
|
export type { Keyboard, Screencast };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-types.d.ts","sourceRoot":"","sources":["../../class-generation/playwright-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"playwright-types.d.ts","sourceRoot":"","sources":["../../class-generation/playwright-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAW,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,eAAe,CAAC;IACzB,IAAI,IAAI,eAAe,CAAC;IACxB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC;IACpC,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,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,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC;AAExC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAErC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -6875,10 +6875,10 @@ function getConstructor(childrenComponent, componentHierarchyMap, attachmentsFor
|
|
|
6875
6875
|
statements: (writer) => {
|
|
6876
6876
|
writer.writeLine(`super(page, { testIdAttribute: ${JSON.stringify(attr)} });`);
|
|
6877
6877
|
for (const a of attachmentsForThisView) {
|
|
6878
|
-
writer.writeLine(`this.${a.propertyName} = new ${a.className}(page, this);`);
|
|
6878
|
+
writer.writeLine(`this.${a.propertyName} = new ${a.className}(this.page, this);`);
|
|
6879
6879
|
}
|
|
6880
6880
|
for (const w of widgetInstances) {
|
|
6881
|
-
writer.writeLine(`this.${w.propertyName} = new ${w.className}(page, ${JSON.stringify(w.testId)});`);
|
|
6881
|
+
writer.writeLine(`this.${w.propertyName} = new ${w.className}(this.page, ${JSON.stringify(w.testId)});`);
|
|
6882
6882
|
}
|
|
6883
6883
|
childrenComponent.forEach((child) => {
|
|
6884
6884
|
if (componentHierarchyMap.has(child) && componentHierarchyMap.get(child)?.dataTestIdSet.size) {
|