@axe-core/watcher 3.16.0-next.2d5fc7a2 → 3.16.0-next.2da9c996

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ const Controller_1 = __importDefault(require("./Controller"));
9
9
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
10
10
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
11
11
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
12
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
13
  function playwrightConfig(opts) {
13
14
  const { axe, ...config } = opts;
14
15
  let { args = [] } = config;
@@ -27,6 +28,7 @@ function playwrightConfig(opts) {
27
28
  class PlaywrightController extends Controller_1.default {
28
29
  constructor(driver) {
29
30
  super({ debugLoggerName: 'PlaywrightController' });
31
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Playwright', 'playwrightConfig()');
30
32
  this.driver = driver;
31
33
  }
32
34
  async executeScript(fn, ...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"playwright.js","sourceRoot":"","sources":["../src/playwright.ts"],"names":[],"mappings":";;;;;;AAeA,4CAoBC;AAlCD,8DAAqC;AACrC,iFAA6E;AAC7E,8EAAqD;AACrD,4EAA2E;AAW3E,SAAgB,gBAAgB,CAAC,IAAa;IAC5C,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,MAAM,CAAA;IAE1B,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAEnB,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpB,MAAM,IAAI,qDAAyB,CACjC,kHAAkH,CACnH,CAAA;IACH,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAA;IACzB,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,OAAO;QACL,GAAG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B,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,OAAO;QACL,GAAG,MAAM;QACT,QAAQ,EAAE,KAAK;QACf,IAAI;KACL,CAAA;AACH,CAAC;AAED,MAAa,oBAAqB,SAAQ,oBAAU;IAGlD,YAAY,MAAY;QACtB,KAAK,CAAC,EAAE,eAAe,EAAE,sBAAsB,EAAE,CAAC,CAAA;QAElD,IAAA,uDAA0B,EAAC,YAAY,EAAE,oBAAoB,CAAC,CAAA;QAE9D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAES,KAAK,CAAC,aAAa,CAC3B,EAA+B,EAC/B,GAAG,IAAe;QAElB,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,IAAI,EAAE,CAAA;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAI,EAAE,EAAE,GAAG,CAAC,CAAA;QACrD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAnBD,oDAmBC;AAKM,MAAM,cAAc,GAAG,CAE5B,cAA8B,EAE9B,oBAA0C,EAC1B,EAAE;IAClB,MAAM,IAAI,KAAK,CAAC;;;;;;GAMf,CAAC,CAAA;AACJ,CAAC,CAAA;AAbY,QAAA,cAAc,kBAa1B;AAED,2DAAqE;AAA5D,wHAAA,QAAQ,OAAsB"}
@@ -9,6 +9,7 @@ export declare const wrapFrame: (frame: PossiblyWrapped<Frame>, controller: Play
9
9
  export declare const wrapFrameLocator: (frameLocator: PossiblyWrapped<FrameLocator>, controller: PlaywrightController) => FrameLocator;
10
10
  export declare const wrapLocator: (locator: PossiblyWrapped<Locator>, controller: PlaywrightController) => Locator;
11
11
  export declare const wrapJSHandle: (jsHandle: PossiblyWrapped<JSHandle>, controller: PlaywrightController) => JSHandle;
12
+ export declare const wrapSmartHandle: (smartHandle: PossiblyWrapped<JSHandle | ElementHandle>, controller: PlaywrightController) => JSHandle | ElementHandle;
12
13
  export declare const wrapKeyboard: (keyboard: PossiblyWrapped<Keyboard>, controller: PlaywrightController) => Keyboard;
13
14
  export declare const wrapMouse: (mouse: PossiblyWrapped<Mouse>, controller: PlaywrightController) => Mouse;
14
15
  export declare const wrapTouchscreen: (touchscreen: PossiblyWrapped<Touchscreen>, controller: PlaywrightController) => Touchscreen;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wrapTouchscreen = exports.wrapMouse = exports.wrapKeyboard = exports.wrapJSHandle = exports.wrapLocator = exports.wrapFrameLocator = exports.wrapFrame = exports.wrapElementHandle = exports.wrapPage = exports.wrapBrowser = exports.wrapBrowserContext = void 0;
3
+ exports.wrapTouchscreen = exports.wrapMouse = exports.wrapKeyboard = exports.wrapSmartHandle = exports.wrapJSHandle = exports.wrapLocator = exports.wrapFrameLocator = exports.wrapFrame = exports.wrapElementHandle = exports.wrapPage = exports.wrapBrowser = exports.wrapBrowserContext = void 0;
4
4
  const proxyHandlers_1 = require("./utils/proxyHandlers");
5
5
  const wrapBrowserContext = (browserContext, controller) => {
6
6
  if ((0, proxyHandlers_1.isWrapped)(browserContext)) {
@@ -97,6 +97,9 @@ const wrapPage = (page, controller) => {
97
97
  const els = await target.$$(...args);
98
98
  return els.map(e => (0, exports.wrapElementHandle)(e, controller));
99
99
  };
100
+ case 'addScriptTag':
101
+ case 'addStyleTag':
102
+ return (0, proxyHandlers_1.proxiedGetFuncWithAnalyzeWrapped)(target, prop, controller);
100
103
  case 'waitForSelector':
101
104
  return async (...args) => {
102
105
  const el = await target.waitForSelector(...args);
@@ -107,8 +110,6 @@ const wrapPage = (page, controller) => {
107
110
  };
108
111
  case '$$eval':
109
112
  case '$eval':
110
- case 'addScriptTag':
111
- case 'addStyleTag':
112
113
  case 'bringToFront':
113
114
  case 'check':
114
115
  case 'click':
@@ -144,7 +145,7 @@ const wrapPage = (page, controller) => {
144
145
  case 'waitForFunction':
145
146
  return async (...args) => {
146
147
  const handle = await target[prop](...args);
147
- return (0, exports.wrapJSHandle)(handle, controller);
148
+ return (0, exports.wrapSmartHandle)(handle, controller);
148
149
  };
149
150
  case 'frame':
150
151
  case 'mainFrame':
@@ -275,7 +276,7 @@ const wrapFrame = (frame, controller) => {
275
276
  case 'evaluateHandle':
276
277
  return async (...args) => {
277
278
  const el = await target.evaluateHandle(...args);
278
- return (0, exports.wrapJSHandle)(el, controller);
279
+ return (0, exports.wrapSmartHandle)(el, controller);
279
280
  };
280
281
  case 'childFrames':
281
282
  return (...args) => {
@@ -433,7 +434,7 @@ const wrapLocator = (locator, controller) => {
433
434
  case 'evaluateHandle':
434
435
  return async (...args) => {
435
436
  const handle = await target.evaluateHandle(...args);
436
- return (0, exports.wrapJSHandle)(handle, controller);
437
+ return (0, exports.wrapSmartHandle)(handle, controller);
437
438
  };
438
439
  case 'and':
439
440
  case 'filter':
@@ -491,7 +492,7 @@ const wrapJSHandle = (jsHandle, controller) => {
491
492
  case 'evaluateHandle':
492
493
  return async (...args) => {
493
494
  const handle = await target.evaluateHandle(...args);
494
- return (0, exports.wrapJSHandle)(handle, controller);
495
+ return (0, exports.wrapSmartHandle)(handle, controller);
495
496
  };
496
497
  default:
497
498
  return (0, proxyHandlers_1.proxiedGetWithoutAnalyze)(target, prop);
@@ -502,6 +503,13 @@ const wrapJSHandle = (jsHandle, controller) => {
502
503
  return jsHandleProxy;
503
504
  };
504
505
  exports.wrapJSHandle = wrapJSHandle;
506
+ const wrapSmartHandle = (smartHandle, controller) => {
507
+ if ('$' in smartHandle) {
508
+ return (0, exports.wrapElementHandle)(smartHandle, controller);
509
+ }
510
+ return (0, exports.wrapJSHandle)(smartHandle, controller);
511
+ };
512
+ exports.wrapSmartHandle = wrapSmartHandle;
505
513
  const wrapKeyboard = (keyboard, controller) => {
506
514
  if ((0, proxyHandlers_1.isWrapped)(keyboard)) {
507
515
  return keyboard;
@@ -1 +1 @@
1
- {"version":3,"file":"playwright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AAQ,IAAI,EAAE,CAAC;gBACb,KAAK,KAAK;oBACR,OAAO,IAAA,yCAAyB,EAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;gBAE5D;oBACE,OAAO,IAAA,wCAAwB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YACjD,CAAC;QACH,CAAC;KACF,CAAC,CAAA;IAEF,IAAA,6BAAa,EAAC,gBAAgB,CAAC,CAAA;IAE/B,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAvBY,QAAA,eAAe,mBAuB3B"}
package/dist/puppeteer.js CHANGED
@@ -9,6 +9,7 @@ const Controller_1 = __importDefault(require("./Controller"));
9
9
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
10
10
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
11
11
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
12
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
13
  function headlessNotSupportedError(config) {
13
14
  if (!(config === null || config === void 0 ? void 0 : config.headless) || config.headless === 'new') {
14
15
  return;
@@ -34,6 +35,7 @@ function puppeteerConfig(opts) {
34
35
  class PuppeteerController extends Controller_1.default {
35
36
  constructor(driver) {
36
37
  super({ debugLoggerName: 'PuppeteerController' });
38
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Puppeteer', 'puppeteerConfig()');
37
39
  this.driver = driver;
38
40
  }
39
41
  async executeScript(fn, ...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../src/puppeteer.ts"],"names":[],"mappings":";;;;;;AA6CA,0CAkBC;AAxDD,8DAAqC;AACrC,iFAA6E;AAC7E,8EAAqD;AACrD,4EAA2E;AAW3E,SAAS,yBAAyB,CAChC,MAAuD;IAEvD,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAA,IAAI,MAAM,CAAC,QAAQ,KAAK,K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MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAES,KAAK,CAAC,aAAa,CAC3B,EAA+B,EAC/B,GAAG,IAAe;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,CAAA;QACtD,OAAO,MAAW,CAAA;IACpB,CAAC;CACF;AAlBD,kDAkBC;AAKM,MAAM,aAAa,GAAG,CAE3B,cAA8B,EAE9B,UAA+B,EACf,EAAE;IAClB,MAAM,IAAI,KAAK,CAAC;;;;;;KAMb,CAAC,CAAA;AACN,CAAC,CAAA;AAbY,QAAA,aAAa,iBAazB;AAED,yDAAmE;AAA1D,sHAAA,QAAQ,OAAqB"}
@@ -0,0 +1,13 @@
1
+ import { type Variables } from './utils/writeVariables';
2
+ export declare function createExtensionFolder(): void;
3
+ export declare function deleteExtensionFolder(): void;
4
+ export declare function assertVariables(expected: Partial<Variables>): void;
5
+ export type ForwardCompatible<T = any> = T & {
6
+ unknownFutureApi: () => any;
7
+ };
8
+ export declare class StubUsingPrivate {
9
+ #private;
10
+ static for<T>(methods: Partial<{
11
+ [k in keyof ForwardCompatible<T>]: ForwardCompatible<T>[k];
12
+ }>): T & StubUsingPrivate;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ var _StubUsingPrivate_instances, _StubUsingPrivate_private;
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StubUsingPrivate = void 0;
13
+ exports.createExtensionFolder = createExtensionFolder;
14
+ exports.deleteExtensionFolder = deleteExtensionFolder;
15
+ exports.assertVariables = assertVariables;
16
+ const chai_1 = require("chai");
17
+ const fs_1 = __importDefault(require("fs"));
18
+ const constants_1 = require("./utils/constants");
19
+ function createExtensionFolder() {
20
+ fs_1.default.mkdirSync(constants_1.PATH_TO_EXTENSION, { recursive: true });
21
+ }
22
+ function deleteExtensionFolder() {
23
+ fs_1.default.rmSync(constants_1.PATH_TO_EXTENSION, { recursive: true });
24
+ }
25
+ function assertVariables(expected) {
26
+ const variablesString = fs_1.default.readFileSync(constants_1.PATH_TO_EXTENSION_VARIABLES, 'utf8');
27
+ const variables = JSON.parse(variablesString);
28
+ for (const [key, value] of Object.entries(expected)) {
29
+ chai_1.assert.deepEqual(variables[key], value);
30
+ }
31
+ }
32
+ class StubUsingPrivate {
33
+ constructor() {
34
+ _StubUsingPrivate_instances.add(this);
35
+ }
36
+ static for(methods) {
37
+ const stub = new StubUsingPrivate();
38
+ for (const name in methods) {
39
+ ;
40
+ stub[name] = function (...args) {
41
+ __classPrivateFieldGet(this, _StubUsingPrivate_instances, "m", _StubUsingPrivate_private).call(this);
42
+ return methods[name](...args);
43
+ };
44
+ }
45
+ return stub;
46
+ }
47
+ }
48
+ exports.StubUsingPrivate = StubUsingPrivate;
49
+ _StubUsingPrivate_instances = new WeakSet(), _StubUsingPrivate_private = function _StubUsingPrivate_private() { };
50
+ //# sourceMappingURL=testutils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testutils.js","sourceRoot":"","sources":["../src/testutils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,sDAEC;AAED,sDAEC;AAED,0CAOC;AAvBD,+BAA6B;AAC7B,4CAAmB;AACnB,iDAG0B;AAG1B,SAAgB,qBAAqB;IACnC,YAAE,CAAC,SAAS,CAAC,6BAAiB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;AACtD,CAAC;AAED,SAAgB,qBAAqB;IACnC,YAAE,CAAC,MAAM,CAAC,6BAAiB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;AACnD,CAAC;AAED,SAAgB,eAAe,CAAC,QAA4B;IAC1D,MAAM,eAAe,GAAG,YAAE,CAAC,YAAY,CAAC,uCAA2B,EAAE,MAAM,CAAC,CAAA;IAC5E,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;IAE7C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpD,aAAM,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAA;IACzC,CAAC;AACH,CAAC;AASD,MAAa,gBAAgB;IAA7B;;IAgBA,CAAC;IAdC,MAAM,CAAC,GAAG,CACR,OAEE;QAEF,MAAM,IAAI,GAAG,IAAI,gBAAgB,EAA0B,CAAA;QAC3D,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,CAAC;YAAC,IAAY,CAAC,IAAI,CAAC,GAAG,UAAkC,GAAG,IAAW;gBACrE,uBAAA,IAAI,8DAAS,MAAb,IAAI,CAAW,CAAA;gBACf,OAAQ,OAAe,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;YACxC,CAAQ,CAAA;QACV,CAAC;QACD,OAAO,IAA+C,CAAA;IACxD,CAAC;CACF;AAhBD,4CAgBC;gHAfa,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const assertVariablesWereWritten: (integration: string, method: string) => void;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.assertVariablesWereWritten = void 0;
7
+ const assert_1 = __importDefault(require("assert"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const constants_1 = require("./constants");
10
+ const assertVariablesWereWritten = (integration, method) => {
11
+ const exists = fs_1.default.existsSync(constants_1.PATH_TO_EXTENSION_VARIABLES);
12
+ (0, assert_1.default)(exists, `${integration} is not configured for @axe-core/watcher. Please ensure that @axe-core/watcher's ${method} is invoked. All tests will fail with this error.`);
13
+ };
14
+ exports.assertVariablesWereWritten = assertVariablesWereWritten;
15
+ //# sourceMappingURL=assertVariablesWereWritten.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertVariablesWereWritten.js","sourceRoot":"","sources":["../../src/utils/assertVariablesWereWritten.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAC3B,4CAAmB;AACnB,2CAAyD;AAElD,MAAM,0BAA0B,GAAG,CACxC,WAAmB,EACnB,MAAc,EACR,EAAE;IACR,MAAM,MAAM,GAAG,YAAE,CAAC,UAAU,CAAC,uCAA2B,CAAC,CAAA;IACzD,IAAA,gBAAM,EACJ,MAAM,EACN,GAAG,WAAW,oFAAoF,MAAM,mDAAmD,CAC5J,CAAA;AACH,CAAC,CAAA;AATY,QAAA,0BAA0B,8BAStC"}
@@ -0,0 +1 @@
1
+ import 'mocha';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ require("mocha");
7
+ const chai_1 = require("chai");
8
+ const testutils_1 = require("../testutils");
9
+ const constants_1 = require("./constants");
10
+ const fs_1 = __importDefault(require("fs"));
11
+ const assertVariablesWereWritten_1 = require("./assertVariablesWereWritten");
12
+ describe('assertVariablesWereWritten', () => {
13
+ beforeEach(() => {
14
+ (0, testutils_1.createExtensionFolder)();
15
+ });
16
+ afterEach(() => {
17
+ (0, testutils_1.deleteExtensionFolder)();
18
+ });
19
+ describe('when variables were written', () => {
20
+ it('doesn`t throw an error', () => {
21
+ fs_1.default.writeFileSync(constants_1.PATH_TO_EXTENSION_VARIABLES, JSON.stringify({}));
22
+ chai_1.assert.doesNotThrow(() => (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('test', 'test()'));
23
+ });
24
+ });
25
+ describe('when variables were not written', () => {
26
+ it('throws an error', () => {
27
+ chai_1.assert.throws(() => (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('test', 'test()'), `test is not configured for @axe-core/watcher. Please ensure that @axe-core/watcher's test() is invoked. All tests will fail with this error.`);
28
+ });
29
+ });
30
+ });
31
+ //# sourceMappingURL=assertVariablesWereWritten.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertVariablesWereWritten.test.js","sourceRoot":"","sources":["../../src/utils/assertVariablesWereWritten.test.ts"],"names":[],"mappings":";;;;;AAAA,iBAAc;AACd,+BAA6B;AAC7B,4CAA2E;AAC3E,2CAAyD;AACzD,4CAAmB;AACnB,6EAAyE;AAEzE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,UAAU,CAAC,GAAG,EAAE;QACd,IAAA,iCAAqB,GAAE,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAA,iCAAqB,GAAE,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;QAC3C,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;YAChC,YAAE,CAAC,aAAa,CAAC,uCAA2B,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAA;YAEjE,aAAM,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAA,uDAA0B,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;QACzE,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;QAC/C,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;YACzB,aAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAA,uDAA0B,EAAC,MAAM,EAAE,QAAQ,CAAC,EAClD,8IAA8I,CAC/I,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type Controller from '../Controller';
2
+ import { type PlaywrightController } from '../playwright';
2
3
  declare const kWrapped: unique symbol;
3
4
  export type PossiblyWrapped<T> = T & {
4
5
  [kWrapped]?: boolean;
@@ -8,5 +9,6 @@ export declare const isWrapped: <T>(o: PossiblyWrapped<T> | null) => boolean;
8
9
  /** Mark the given object as wrapped. */
9
10
  export declare const markAsWrapped: (o: unknown) => void;
10
11
  export declare const proxiedGetFuncWithAnalyze: <T>(target: T, prop: keyof T, controller: Controller) => (...args: unknown[]) => Promise<unknown>;
12
+ export declare const proxiedGetFuncWithAnalyzeWrapped: <T>(target: T, prop: keyof T, controller: PlaywrightController) => (...args: unknown[]) => Promise<unknown>;
11
13
  export declare const proxiedGetWithoutAnalyze: <T>(target: T, prop: keyof T) => unknown;
12
14
  export {};
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = void 0;
3
+ exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyzeWrapped = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = void 0;
4
+ const playwrightWrapping_1 = require("../playwrightWrapping");
4
5
  const kWrapped = Symbol('axe watcher wrapped');
5
6
  const isWrapped = (o) => {
6
7
  if (!o) {
@@ -26,6 +27,18 @@ const proxiedGetFuncWithAnalyze = (target, prop, controller) => async (...args)
26
27
  return result;
27
28
  };
28
29
  exports.proxiedGetFuncWithAnalyze = proxiedGetFuncWithAnalyze;
30
+ const proxiedGetFuncWithAnalyzeWrapped = (target, prop, controller) => async (...args) => {
31
+ await controller.analyze({
32
+ __Method: prop,
33
+ __UserRequestedAnalyze: false
34
+ });
35
+ const result = await target[prop].call(target, ...args);
36
+ if (!result) {
37
+ return null;
38
+ }
39
+ return (0, playwrightWrapping_1.wrapElementHandle)(result, controller);
40
+ };
41
+ exports.proxiedGetFuncWithAnalyzeWrapped = proxiedGetFuncWithAnalyzeWrapped;
29
42
  const proxiedGetWithoutAnalyze = (target, prop) => {
30
43
  const original = target[prop];
31
44
  if (typeof original === 'function') {
@@ -1 +1 @@
1
- {"version":3,"file":"proxyHandlers.js","sourceRoot":"","sources":["../../src/utils/proxyHandlers.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAOvC,MAAM,SAAS,GAAG,CAAI,CAA4B,EAAW,EAAE;IACpE,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;AAC7B,CAAC,CAAA;AALY,QAAA,SAAS,aAKrB;AAGM,MAAM,aAAa,GAAG,CAAC,CAAU,EAAQ,EAAE;IAChD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE;QACjC,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAA;AACJ,CAAC,CAAA;AANY,QAAA,aAAa,iBAMzB;AAEM,MAAM,yBAAyB,GACpC,CAAI,MAAS,EAAE,IAAa,EAAE,UAAsB,EAAE,EAAE,CACxD,KAAK,EAAE,GAAG,IAAe,EAAoB,EAAE;IAC7C,MAAM,UAAU,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,IAAc;QACxB,sBAAsB,EAAE,KAAK;KAC9B,CAAC,CAAA;IAIF,MAAM,MAAM,GAAG,MAAO,MAAM,CAAC,IAAI,CAAc,CAAC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G,IAAe;gBAC5C,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;YACvC,CAAC;SACF,CAAA;QAED,OAAO,iBAAiB,CAAC,cAAc,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAhCY,QAAA,wBAAwB,4BAgCpC"}
package/dist/wdio.js CHANGED
@@ -12,6 +12,7 @@ const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
12
12
  const constants_1 = require("./utils/constants");
13
13
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
14
14
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
15
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
15
16
  const noop = () => {
16
17
  };
17
18
  function wdioConfig({ axe, ...options }) {
@@ -83,6 +84,7 @@ function wdioTestRunner(...params) {
83
84
  class WdioController extends Controller_1.default {
84
85
  constructor(driver) {
85
86
  super({ debugLoggerName: 'WdioController' });
87
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('WDIO', 'wdioConfig()');
86
88
  this.driver = driver;
87
89
  }
88
90
  async executeScript(fn, ...args) {
package/dist/wdio.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wdio.js","sourceRoot":"","sources":["../src/wdio.ts"],"names":[],"mappings":";;;;;;AAkCA,gCA0BC;AAgBD,wCA8DC;AAnID,4CAAmB;AACnB,8DAAqC;AACrC,4EAA2E;AAC3E,iDAAwD;AACxD,iFAA6E;AAC7E,8EAAqD;AAErD,MAAM,IAAI,GAAG,GAAS,EAAE;AAExB,CAAC,CAAA;AAkBD,SAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAW;;IACrD,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAInB,MAAM,UAAU,GAAG,CAAA,MAAC,OAAO,CAAC,YAAoB,0CAAG,oBAAoB,CAAC,KAAI,EAA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;AAGU,QAAA,uBAAuB,GAClC;IACE,UAAU;IACV,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;IACd,WAAW;CACZ,CAAA;AAGI,MAAM,QAAQ,GAAG,CACtB,OAAgB,EAChB,UAA0B,EACjB,EAAE;IACX,MAAM,OAAO,GAAG,KAAK,EACnB,EAA4C,EAC5C,GAAG,IAAe,EACA,EAAE;QACpB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;QAC7B,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,CAAA;QAC3D,OAAO,GAAG,CAAA;IACZ,CAAC,CAAA;IAED,KAAK,MAAM,MAAM,IAAI,+BAAuB,EAAE,CAAC;QAC7C,OAAO,CAAC,gBAAgB,CAAC,MAAa,EAAE,OAAO,CAAC,CAAA;IAClD,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,+BAAuB,EAAE,CAAC;QAC7C,OAAO,CAAC,gBAAgB,CAAC,MAAa,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAtBY,QAAA,QAAQ,YAsBpB"}
package/dist/webdriver.js CHANGED
@@ -9,6 +9,7 @@ const Controller_1 = __importDefault(require("./Controller"));
9
9
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
10
10
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
11
11
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
12
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
13
  var webdriverWrapping_1 = require("./webdriverWrapping");
13
14
  Object.defineProperty(exports, "wrapWebdriver", { enumerable: true, get: function () { return webdriverWrapping_1.wrapDriver; } });
14
15
  function webdriverConfig(arg) {
@@ -29,6 +30,7 @@ function webdriverConfig(arg) {
29
30
  class WebdriverController extends Controller_1.default {
30
31
  constructor(driver) {
31
32
  super({ debugLoggerName: 'WebdriverController' });
33
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('WebDriver', 'webdriverConfig()');
32
34
  this.driver = driver;
33
35
  }
34
36
  async executeScript(fn, ...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"webdriver.js","sourceRoot":"","sources":["../src/webdriver.ts"],"names":[],"mappings":";;;;;;AAmBA,0CA6BC;AA9CD,8DAAqC;AACrC,4EAA2E;AAC3E,iFAA6E;AAC7E,8EAAqD;AAErD,yDAAiE;AAAxD,kHAAA,UAAU,OAAiB;AAYpC,SAAgB,eAAe,CAAC,GAAkB;;IAGhD,MAAM,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAEnD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAA;IAEnB,MAAM,IAAI,GAAY,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAA;IAE9D,MAAM,YAAY,GAAG,CAAC,CAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,QAAQ,0CAAE,IAAI,KAAI,EAAE,CAAa,CAErE;IAAC,IAAY,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE;QAC3D,sBAAsB,EAAE,KAAK;KAC9B,CAAC,CAAA;IAGF,IACE,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,eAErC,OAAA,MAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,QAAQ,0CAAE,IAAI,0CAAE,QAAQ,CAAC,IAAI,CAAC,CAAA,EAAA,CAC9C,EACD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