@letsrunit/playwright 0.19.4 → 0.19.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letsrunit/playwright",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
4
4
  "description": "Playwright extensions and utilities for letsrunit",
5
5
  "keywords": [
6
6
  "testing",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "packageManager": "yarn@4.10.3",
44
44
  "dependencies": {
45
- "@letsrunit/utils": "0.19.4",
45
+ "@letsrunit/utils": "0.19.5",
46
46
  "@playwright/test": "1.58.2",
47
47
  "case": "^1.6.3",
48
48
  "diff": "^8.0.3",
@@ -154,10 +154,12 @@ function formatLocatorChain(candidates: Locator[]): string {
154
154
  export function createFallbackLocator(candidates: Locator[]): Locator {
155
155
  const primary = candidates[0];
156
156
  const unsupported = new Set(['filter', 'getByRole', 'getByLabel']);
157
+ const passthroughMetaProperties = new Set(['constructor', '__proto__']);
157
158
 
158
159
  const proxy = new Proxy(primary as unknown as object, {
159
160
  get(_target, prop: ProxyProperty) {
160
161
  if (typeof prop !== 'string') return (primary as any)[prop];
162
+ if (passthroughMetaProperties.has(prop)) return (primary as any)[prop];
161
163
 
162
164
  switch (prop) {
163
165
  case 'toString':