@axe-core/watcher 3.16.0-next.bc42b90e → 3.16.0-next.bff3a1e5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/Controller.d.ts +1 -1
  2. package/dist/Controller.js +33 -34
  3. package/dist/Controller.js.map +1 -1
  4. package/dist/cypress.js +2 -0
  5. package/dist/cypress.js.map +1 -1
  6. package/dist/cypressCommands.js +37 -6
  7. package/dist/cypressCommands.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/playwright.d.ts +1 -1
  11. package/dist/playwright.js +6 -1
  12. package/dist/playwright.js.map +1 -1
  13. package/dist/playwrightTest.d.ts +9 -3
  14. package/dist/playwrightTest.js +10 -5
  15. package/dist/playwrightTest.js.map +1 -1
  16. package/dist/playwrightWrapping.d.ts +1 -0
  17. package/dist/playwrightWrapping.js +15 -7
  18. package/dist/playwrightWrapping.js.map +1 -1
  19. package/dist/puppeteer.js +4 -0
  20. package/dist/puppeteer.js.map +1 -1
  21. package/dist/utils/assertVariablesWereWritten.d.ts +1 -0
  22. package/dist/utils/assertVariablesWereWritten.js +15 -0
  23. package/dist/utils/assertVariablesWereWritten.js.map +1 -0
  24. package/dist/utils/checkUserArgs.d.ts +8 -0
  25. package/dist/utils/checkUserArgs.js +10 -0
  26. package/dist/utils/checkUserArgs.js.map +1 -0
  27. package/dist/utils/proxyHandlers.d.ts +2 -0
  28. package/dist/utils/proxyHandlers.js +14 -1
  29. package/dist/utils/proxyHandlers.js.map +1 -1
  30. package/dist/wdio.js +5 -0
  31. package/dist/wdio.js.map +1 -1
  32. package/dist/webdriver.js +4 -0
  33. package/dist/webdriver.js.map +1 -1
  34. package/extension/background.js +1 -1
  35. package/extension/content.js +1 -1
  36. package/package.json +2 -2
  37. package/dist/utils/headlessNotSupportedError.test.d.ts +0 -1
  38. package/dist/utils/headlessNotSupportedError.test.js +0 -21
  39. package/dist/utils/headlessNotSupportedError.test.js.map +0 -1
  40. package/dist/utils/initializeSession.test.d.ts +0 -1
  41. package/dist/utils/initializeSession.test.js +0 -177
  42. package/dist/utils/initializeSession.test.js.map +0 -1
  43. package/dist/utils/isValidExcludePattern.test.d.ts +0 -1
  44. package/dist/utils/isValidExcludePattern.test.js +0 -17
  45. package/dist/utils/isValidExcludePattern.test.js.map +0 -1
  46. package/dist/utils/mergeChromeArgs.test.d.ts +0 -1
  47. package/dist/utils/mergeChromeArgs.test.js +0 -257
  48. package/dist/utils/mergeChromeArgs.test.js.map +0 -1
  49. package/dist/utils/proxyHandlers.test.d.ts +0 -1
  50. package/dist/utils/proxyHandlers.test.js +0 -27
  51. package/dist/utils/proxyHandlers.test.js.map +0 -1
  52. package/dist/utils/validateAxeRunContext.test.d.ts +0 -1
  53. package/dist/utils/validateAxeRunContext.test.js +0 -97
  54. package/dist/utils/validateAxeRunContext.test.js.map +0 -1
  55. package/dist/utils/validateAxeRunOptions.test.d.ts +0 -1
  56. package/dist/utils/validateAxeRunOptions.test.js +0 -215
  57. package/dist/utils/validateAxeRunOptions.test.js.map +0 -1
  58. package/dist/utils/writeVariables.test.d.ts +0 -1
  59. package/dist/utils/writeVariables.test.js +0 -200
  60. package/dist/utils/writeVariables.test.js.map +0 -1
@@ -8,7 +8,7 @@ declare abstract class Controller {
8
8
  protected isStopped: boolean;
9
9
  protected debugLogger: Debugger;
10
10
  constructor({ debugLoggerName }: ControllerParams);
11
- start(): Promise<void>;
11
+ start(): void;
12
12
  stop(): Promise<void>;
13
13
  analyze({ __Method, __UserRequestedAnalyze }?: {
14
14
  __Method?: string;
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const updateAutoAnalyze_1 = __importDefault(require("./utils/updateAutoAnalyze"));
7
6
  const sendResultsToServer_1 = __importDefault(require("./sendResultsToServer"));
8
7
  const createDebugger_1 = __importDefault(require("./createDebugger"));
9
8
  class Controller {
@@ -11,44 +10,39 @@ class Controller {
11
10
  this.isStopped = false;
12
11
  this.debugLogger = (0, createDebugger_1.default)(debugLoggerName);
13
12
  }
14
- async start() {
15
- (0, updateAutoAnalyze_1.default)(true);
13
+ start() {
14
+ this.debugLogger(`Start: Invoked`);
16
15
  this.isStopped = false;
17
- await this.executeScript(() => {
18
- if (!['http:', 'https:', 'file:'].includes(window.location.protocol)) {
19
- return Promise.resolve();
20
- }
21
- return new Promise(resolve => {
22
- const fn = () => {
23
- window.removeEventListener('axe:start-auto-mode-done', fn);
24
- resolve();
25
- };
26
- window.addEventListener('axe:start-auto-mode-done', fn);
27
- const event = new CustomEvent('axe:start-auto-mode');
28
- window.dispatchEvent(event);
29
- });
30
- });
31
16
  }
32
17
  async stop() {
33
- (0, updateAutoAnalyze_1.default)(false);
34
- this.isStopped = true;
35
- await this.executeScript(() => {
18
+ this.debugLogger(`Stop: Invoked (${this.isStopped ? 'not analyzing' : 'may analyze implicitly'})`);
19
+ if (this.isStopped) {
20
+ return;
21
+ }
22
+ const result = await this.executeScript(() => {
36
23
  if (!['http:', 'https:', 'file:'].includes(window.location.protocol)) {
37
- return Promise.resolve();
24
+ return Promise.resolve({ message: 'Skipped - Invalid protocol' });
38
25
  }
39
26
  return new Promise(resolve => {
40
- const fn = () => {
41
- window.removeEventListener('axe:stop-auto-mode-done', fn);
42
- resolve();
27
+ const fn = (event) => {
28
+ window.removeEventListener('axe:manual-mode-analyze-done', fn);
29
+ resolve(event.detail);
43
30
  };
44
- window.addEventListener('axe:stop-auto-mode-done', fn);
45
- const event = new CustomEvent('axe:stop-auto-mode');
31
+ window.addEventListener('axe:manual-mode-analyze-done', fn);
32
+ const event = new CustomEvent('axe:manual-mode-analyze', {
33
+ detail: { userRequestedAnalyze: false }
34
+ });
46
35
  window.dispatchEvent(event);
47
36
  });
48
37
  });
38
+ this.debugLogger(`Stop: ${result.message}`);
39
+ this.isStopped = true;
49
40
  }
50
41
  async analyze({ __Method, __UserRequestedAnalyze = true } = {}) {
51
- this.debugLogger(`Analyze: Invoked${__Method ? ` - ${__Method}` : ''}`);
42
+ this.debugLogger(`Analyze: Invoked${__Method ? ` - ${__Method}` : ''}`, {
43
+ isStopped: this.isStopped,
44
+ __UserRequestedAnalyze
45
+ });
52
46
  if (this.isStopped && !__UserRequestedAnalyze) {
53
47
  this.debugLogger('Analyze: Skipped', {
54
48
  isStopped: this.isStopped,
@@ -56,7 +50,7 @@ class Controller {
56
50
  });
57
51
  return;
58
52
  }
59
- const result = await this.executeScript((userRequestedAnalyze) => {
53
+ const result = await this.executeScript(({ userRequestedAnalyze, isStopped }) => {
60
54
  if (!['http:', 'https:', 'file:'].includes(window.location.protocol)) {
61
55
  return Promise.resolve({ message: 'Skipped - Invalid protocol' });
62
56
  }
@@ -67,16 +61,19 @@ class Controller {
67
61
  };
68
62
  window.addEventListener('axe:manual-mode-analyze-done', fn);
69
63
  const event = new CustomEvent('axe:manual-mode-analyze', {
70
- detail: { userRequestedAnalyze }
64
+ detail: { userRequestedAnalyze, isStopped }
71
65
  });
72
66
  window.dispatchEvent(event);
73
67
  });
74
- }, __UserRequestedAnalyze);
68
+ }, {
69
+ userRequestedAnalyze: __UserRequestedAnalyze,
70
+ isStopped: this.isStopped
71
+ });
75
72
  this.debugLogger(`Analyze: ${result.message}`);
76
73
  }
77
74
  async flush() {
78
- this.debugLogger('Flush: Invoked (may analyze implicitly)');
79
- const results = await this.executeScript(() => {
75
+ this.debugLogger(`Flush: Invoked (${this.isStopped ? 'auto-analysis stopped' : 'may analyze implicitly'})`);
76
+ const results = await this.executeScript((isStopped) => {
80
77
  if (!['http:', 'https:', 'file:'].includes(window.location.protocol)) {
81
78
  return Promise.resolve([]);
82
79
  }
@@ -92,10 +89,12 @@ class Controller {
92
89
  };
93
90
  window.addEventListener('axe:result', onAxeResult);
94
91
  window.addEventListener('axe:flush-end', onFlushEnd);
95
- const event = new CustomEvent('axe:flush-start');
92
+ const event = new CustomEvent('axe:flush-start', {
93
+ detail: { isStopped }
94
+ });
96
95
  window.dispatchEvent(event);
97
96
  });
98
- });
97
+ }, this.isStopped);
99
98
  this.debugLogger(`Flush: Received ${results.length} results`);
100
99
  await (0, sendResultsToServer_1.default)({
101
100
  results,
@@ -1 +1 @@
1
- {"version":3,"file":"Controller.js","sourceRoot":"","sources":["../src/Controller.ts"],"names":[],"mappings":";;;;;AAAA,kFAAyD;AACzD,gFAAwE;AACxE,sEAA6C;AAQ7C,MAAe,UAAU;IASvB,YAAY,EAAE,eAAe,EAAoB;QAHvC,cAAS,GAAG,KAAK,CAAA;QAIzB,IAAI,CAAC,WAAW,GAAG,IAAA,wBAAc,EAAC,eAAe,CAAC,CAAA;IACpD,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,IAAA,2BAAiB,EAAC,IAAI,CAAC,CAAA;QACvB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QAEtB,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE;YAC5B,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACrE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;YAC1B,CAAC;YAED,OAAO,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;gBACjC,MAAM,EAAE,GAAG,GAAS,EAAE;oBACpB,MAAM,CAAC,mBAAmB,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAA;oBAC1D,OAAO,EAAE,CAAA;gBACX,CAAC,CAAA;gBACD,MAAM,CAAC,gBAAgB,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAA;gBACvD,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,qBAAqB,CAAC,CAAA;gBACpD,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;YAC7B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,C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B,CAAC,CAAA;gBAChE,MAAM,CAAC,gBAAgB,CAAC,eAAe,EAAE,UAAU,CAAC,CAAA;gBAEpD,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,iBAAiB,EAAE;oBAC/C,MAAM,EAAE,EAAE,SAAS,EAAE;iBACtB,CAAC,CAAA;gBACF,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;YAC7B,CAAC,CAAC,CAAA;QACJ,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;QAElB,IAAI,CAAC,WAAW,CAAC,mBAAmB,OAAO,CAAC,MAAM,UAAU,CAAC,CAAA;QAC7D,MAAM,IAAA,6BAAmB,EAAC;YACxB,OAAO;YACP,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAA;QACF,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAA;IACrC,CAAC;CACF;AAED,kBAAe,UAAU,CAAA"}
package/dist/cypress.js CHANGED
@@ -11,6 +11,7 @@ const writeExtensionManifest_1 = __importDefault(require("./utils/writeExtension
11
11
  const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError");
12
12
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
13
13
  const createDebugger_1 = __importDefault(require("./createDebugger"));
14
+ const checkUserArgs_1 = require("./utils/checkUserArgs");
14
15
  const debugLogger = (0, createDebugger_1.default)('CypressController');
15
16
  exports.cypressConfigRunFlag = '__AXE_WATCHER_CYPRESS_CONFIG_RUN';
16
17
  exports.cypressConfigAutoAnalyzeFlag = '__AXE_WATCHER_AUTO_ANALYZE';
@@ -88,6 +89,7 @@ const cypressConfig = (config) => {
88
89
  throw new headlessNotSupportedError_1.HeadlessNotSupportedError('In Cypress, "--headless=new" became the default headless mode in Cypress version 12.15.0. Ensure your Cypress version is up to date and that you are not using a "before:browser:launch" configuration that adds "--headless" to launchOptions.args.');
89
90
  }
90
91
  const existingArgs = launchOptions.args;
92
+ (0, checkUserArgs_1.checkUserArgs)(existingArgs);
91
93
  launchOptions.args = (0, mergeChromeArgs_1.default)(existingArgs, {
92
94
  disableOtherExtensions: false
93
95
  });
@@ -1 +1 @@
1
- {"version":3,"file":"cypress.js","sourceRoot":"","sources":["../src/cypress.ts"],"names":[],"mappings":";;;;;;AACA,gFAAuD;AACvD,sEAA6C;AAC7C,4EAA2E;AAC3E,4FAA0D;AAC1D,iFAA6E;AAC7E,8EAAqD;AACrD,sEAA6C;AAE7C,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,mBAAmB,CAAC,CAAA;AAE1C,QAAA,oBAAoB,GAAG,kCAAkC,CAAA;AACzD,QAAA,4BAA4B,GAAG,4BAA4B,CAAA;AAQjE,MAAM,aAAa,GAAG,CAC3B,MAA6C,EACtB,EAAE;;IACzB,MAAM,EAAE,GAAG,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAAA;IACrC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,GAAG,CAAA;IAC7B,MAAM,eAAe,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;IAE9D,IAAA,wBAAc,EAAC;QACb,GAAG,GAAG;QAEN,OAAO,EAAE,IAAI;KACd,CAAC,CAAA;IACF,IAAA,gCAAa,EAAC;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE;YAEb,4BAA4B;YAE5B,uBAAuB;SACxB;KACF,CAAC,CAAA;IAEF,IAAI,MAAA,UAAU,CAAC,GAAG,0CAAE,GAAG,EAAE,CAAC;QACxB,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;YACzD,CAAC,4BAAoB,CAAC,EAAE,IAAI;SAC7B,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,UAAU,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC,GAAG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AAA;oBACb,CAAC;oBACD,iBAAiB,EAAE,CAAC,OAAe,EAAE,EAAE;wBACrC,WAAW,CAAC,OAAO,CAAC,CAAA;wBACpB,OAAO,IAAI,CAAA;oBACb,CAAC;iBACF,CAAC,CAAA;gBAEF,EAAE,CAAC,uBAAuB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE;oBAGrD,IACE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;wBAClC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EACnC,CAAC;wBACD,MAAM,IAAI,KAAK,CACb,0GAA0G,OAAO,CAAC,IAAI,mIAAmI,CAC1P,CAAA;oBACH,CAAC;oBAED,IAAI,OAAO,CAAC,UAAU,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;wBACpE,MAAM,IAAI,qDAAyB,CACjC,sPAAsP,CACvP,CAAA;oBACH,CAAC;oBAGD,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAA;oBACvC,IAAA,6BAAa,EAAC,YAAY,CAAC,CAAA;oBAC3B,aAAa,CAAC,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE;wBACjD,sBAAsB,EAAE,KAAK;qBAC9B,CAAC,CAAA;oBAEF,OAAO,aAAa,CAAA;gBACtB,CAAC,CAAC,CAAA;gBAMF,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;gBAEjC,OAAO,mBAAmB,CAAA;YAC5B,CAAC;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAvJY,QAAA,aAAa,iBAuJzB"}
@@ -76,7 +76,9 @@ Cypress.Commands.addQuery('__axeRestoreSubject', function (subjectChain, timeout
76
76
  return () => cy.getSubjectFromChain(subjectChain);
77
77
  });
78
78
  function axeWatcherFlushCommand() {
79
- logDebugAxeWatcher({ message: 'Flush: Invoked' });
79
+ logDebugAxeWatcher({
80
+ message: `Flush: Invoked (${isStopped ? 'will not' : 'may'} analyze implicitly)`
81
+ });
80
82
  cy.window().then(win => {
81
83
  if (!shouldAnalyzeLocation(win.location)) {
82
84
  return Promise.resolve();
@@ -119,7 +121,10 @@ function axeWatcherAnalyzeCommand(subject, { __Method, __UserRequestedAnalyze =
119
121
  logDebugAxeWatcher({
120
122
  message: `Analyze: Skipped - invalid protocol`
121
123
  });
122
- return Promise.resolve({ message: `Skipped - Invalid protocol`, subject });
124
+ return Promise.resolve({
125
+ message: `Skipped - Invalid protocol`,
126
+ subject
127
+ });
123
128
  }
124
129
  if (isStopped && !userRequestedAnalyze) {
125
130
  logDebugAxeWatcher({
@@ -134,7 +139,7 @@ function axeWatcherAnalyzeCommand(subject, { __Method, __UserRequestedAnalyze =
134
139
  };
135
140
  win.addEventListener('axe:manual-mode-analyze-done', fn);
136
141
  const event = new CustomEvent('axe:manual-mode-analyze', {
137
- detail: { userRequestedAnalyze }
142
+ detail: { userRequestedAnalyze, isCypress: true }
138
143
  });
139
144
  win.dispatchEvent(event);
140
145
  }).then(result => {
@@ -147,14 +152,40 @@ function axeWatcherAnalyzeCommand(subject, { __Method, __UserRequestedAnalyze =
147
152
  }
148
153
  function axeWatcherStartCommand(subject) {
149
154
  cy.window().then(() => {
155
+ logDebugAxeWatcher({ message: `Start: Invoked` });
150
156
  isStopped = false;
151
157
  return Promise.resolve(subject);
152
158
  });
153
159
  }
154
160
  function axeWatcherStopCommand(subject) {
155
- cy.window().then(() => {
156
- isStopped = true;
157
- return Promise.resolve(subject);
161
+ logDebugAxeWatcher({ message: `Stop: Invoked` });
162
+ cy.window().then(win => {
163
+ if (!shouldAnalyzeLocation(win.location)) {
164
+ logDebugAxeWatcher({
165
+ message: `Stop: Skipped - invalid protocol`
166
+ });
167
+ return Promise.resolve({
168
+ message: `Skipped - Invalid protocol`,
169
+ subject
170
+ });
171
+ }
172
+ return new Promise(resolve => {
173
+ const fn = (event) => {
174
+ win.removeEventListener('axe:manual-mode-analyze-done', fn);
175
+ resolve({ message: event.detail.message, subject });
176
+ };
177
+ win.addEventListener('axe:manual-mode-analyze-done', fn);
178
+ const event = new CustomEvent('axe:manual-mode-analyze', {
179
+ detail: { isCypress: true }
180
+ });
181
+ win.dispatchEvent(event);
182
+ }).then(result => {
183
+ logDebugAxeWatcher({ message: `Stop: ${result === null || result === void 0 ? void 0 : result.message}` });
184
+ isStopped = true;
185
+ if (result === null || result === void 0 ? void 0 : result.subject) {
186
+ return result.subject;
187
+ }
188
+ });
158
189
  });
159
190
  }
160
191
  if (!doesCypressCommandExist('axeAnalyze')) {
@@ -1 +1 @@
1
- {"version":3,"file":"cypressCommands.js","sourceRoot":"","sources":["../src/cypressCommands.ts"],"names":[],"mappings":";;;AAYA,MAAM,oBAAoB,GAAG,kCAAkC,CAAA;AAC/D,MAAM,4BAA4B,GAAG,4BAA4B,CAAA;AAyGjE,IAAI,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;AAK7C,QAAA,gBAAgB,GAAiC;IAC5D,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,UAAU;IACV,OAAO;IACP,IAAI;IACJ,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;CACP,CAAA;AAQD,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAA4B,EAAQ,EAAE;IAGzE,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACvC,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAA;IACvD,CAAC;AACH,CAAC,CAAA;AAED,MAAM,qBAAqB,GAAG,CAAC,QAAkB,EAAW,EAAE,CAC5D,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC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CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -3,5 +3,5 @@ export { puppeteerConfig, PuppeteerController, wrapPuppeteer, wrapPuppeteerPage
3
3
  export { wdioConfig, wdioTestRunner, WdioController, wrapWdio } from './wdio';
4
4
  export { webdriverConfig, WebdriverController, wrapWebdriver } from './webdriver';
5
5
  export { playwrightConfig, PlaywrightController, wrapPlaywright, wrapPlaywrightPage } from './playwright';
6
- export { default as playwrightTest } from './playwrightTest';
6
+ export { default as playwrightTest, type PageWithAxeWatcher as PlaywrightTestPageWithAxeWatcher } from './playwrightTest';
7
7
  export { cypressConfig } from './cypress';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;AAEpD,yCAKoB;AAJlB,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AACb,8GAAA,iBAAiB,OAAA;AAEnB,+BAA6E;AAApE,kGAAA,UAAU,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAC7D,yCAIoB;AAHlB,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AAEf,2CAKqB;AAJnB,8GAAA,gBAAgB,OAAA;AAChB,kHAAA,oBAAoB,OAAA;AACpB,4GAAA,cAAc,OAAA;AACd,gHAAA,kBAAkB,OAAA;AAEpB,mDAA4D;AAAnD,iIAAA,OAAO,OAAkB;AAClC,qCAAyC;AAAhC,wGAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;AAEpD,yCAKoB;AAJlB,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AACb,8GAAA,iBAAiB,OAAA;AAEnB,+BAA6E;AAApE,kGAAA,UAAU,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAC7D,yCAIoB;AAHlB,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AAEf,2CAKqB;AAJnB,8GAAA,gBAAgB,OAAA;AAChB,kHAAA,oBAAoB,OAAA;AACpB,4GAAA,cAAc,OAAA;AACd,gHAAA,kBAAkB,OAAA;AAEpB,mDAGyB;AAFvB,iIAAA,OAAO,OAAkB;AAG3B,qCAAyC;AAAhC,wGAAA,aAAa,OAAA"}
@@ -11,7 +11,7 @@ export type Options = Configuration & LaunchOptions;
11
11
  export declare function playwrightConfig(opts: Options): LaunchOptions;
12
12
  export declare class PlaywrightController extends Controller {
13
13
  private driver;
14
- constructor(driver: Page);
14
+ constructor(driver: Page, isStopped?: boolean);
15
15
  protected executeScript<T>(fn: string | (() => Promise<T>), ...args: unknown[]): Promise<T>;
16
16
  }
17
17
  /**
@@ -9,9 +9,12 @@ 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 checkUserArgs_1 = require("./utils/checkUserArgs");
13
+ const assertVariablesWereWritten_1 = require("./utils/assertVariablesWereWritten");
12
14
  function playwrightConfig(opts) {
13
15
  const { axe, ...config } = opts;
14
16
  let { args = [] } = config;
17
+ (0, checkUserArgs_1.checkUserArgs)(args);
15
18
  (0, writeVariables_1.default)(axe);
16
19
  if (config.headless) {
17
20
  throw new headlessNotSupportedError_1.HeadlessNotSupportedError('In Playwright, include "--headless=new" in the "args" property of your options instead of using "headless: true"');
@@ -25,9 +28,11 @@ function playwrightConfig(opts) {
25
28
  };
26
29
  }
27
30
  class PlaywrightController extends Controller_1.default {
28
- constructor(driver) {
31
+ constructor(driver, isStopped = false) {
29
32
  super({ debugLoggerName: 'PlaywrightController' });
33
+ (0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Playwright', 'playwrightConfig()');
30
34
  this.driver = driver;
35
+ this.isStopped = isStopped;
31
36
  }
32
37
  async executeScript(fn, ...args) {
33
38
  const [arg] = 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,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,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,I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,EAAE,eAAe,EAAE,sBAAsB,EAAE,CAAC,CAAA;QAElD,IAAA,uDAA0B,EAAC,YAAY,EAAE,oBAAoB,CAAC,CAAA;QAE9D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,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;AApBD,oDAoBC;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"}
@@ -1,6 +1,12 @@
1
- import type { TestType, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, Expect } from '@playwright/test';
2
- import { type Options } from './playwright';
3
- type Test = TestType<PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
1
+ import type { TestType, Page, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, Expect } from '@playwright/test';
2
+ import { PlaywrightController, type Options } from './playwright';
3
+ export type PageWithAxeWatcher = Page & {
4
+ axeWatcher: PlaywrightController;
5
+ };
6
+ type Test = TestType<PlaywrightTestArgs & PlaywrightTestOptions & Fixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
7
+ type Fixtures = {
8
+ page: PageWithAxeWatcher;
9
+ };
4
10
  interface ReturnValue {
5
11
  test: Test;
6
12
  expect: Expect;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const playwright_1 = require("./playwright");
7
7
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
8
8
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
9
+ const checkUserArgs_1 = require("./utils/checkUserArgs");
9
10
  const playwrightTest = (options) => {
10
11
  let controller = null;
11
12
  const { axe, ...config } = options;
@@ -18,6 +19,8 @@ const playwrightTest = (options) => {
18
19
  catch (error) {
19
20
  throw new Error('Unable to load @playwright/test: ' + error.message);
20
21
  }
22
+ const isStopped = typeof axe.autoAnalyze === 'undefined' ? false : !axe.autoAnalyze;
23
+ (0, checkUserArgs_1.checkUserArgs)(config.args || []);
21
24
  (0, writeVariables_1.default)(axe);
22
25
  const test = base.extend({
23
26
  context: async ({}, use) => {
@@ -31,14 +34,16 @@ const playwrightTest = (options) => {
31
34
  await context.close();
32
35
  },
33
36
  page: async ({ page }, use) => {
34
- controller = new playwright_1.PlaywrightController(page);
35
- page = (0, playwright_1.wrapPlaywrightPage)(page, controller);
37
+ controller = page.axeWatcher;
38
+ if (!controller) {
39
+ controller = new playwright_1.PlaywrightController(page, isStopped);
40
+ page.axeWatcher = controller;
41
+ page = (0, playwright_1.wrapPlaywrightPage)(page, controller);
42
+ }
36
43
  await use(page);
44
+ await controller.flush();
37
45
  }
38
46
  });
39
- test.afterEach(async () => {
40
- await (controller === null || controller === void 0 ? void 0 : controller.flush());
41
- });
42
47
  const expect = test.expect;
43
48
  return { test, expect };
44
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"playwrightTest.js","sourceRoot":"","sources":["../src/playwrightTest.ts"],"names":[],"mappings":";;;;;AAUA,6CAIqB;AACrB,8EAAqD;AACrD,4EAAmD;AAoBnD,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAe,EAAE;IACvD,IAAI,UAAU,GAAgC,IAAI,CAAA;IAClD,MAAM,EAAE,GAAG,EAA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,CAAC,IAAI,IAAI,EAAE,EAAE;oBACvC,sBAAsB,EAAE,IAAI;iBAC7B,CAAC;aACH,CAAC,CAAA;YACF,MAAM,GAAG,CAAC,OAAO,CAAC,CAAA;YAClB,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;QACvB,CAAC;QACD,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;YAC5B,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;YAC5B,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,UAAU,GAAG,IAAI,iCAAoB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;gBACtD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;gBAC5B,IAAI,GAAG,IAAA,+BAAkB,EAAC,IAAI,EAAE,UAAU,CAAuB,CAAA;YACnE,CAAC;YAED,MAAM,GAAG,CAAC,IAAI,CAAC,CAAA;YAEf,MAAM,UAAU,CAAC,KAAK,EAAE,CAAA;QAC1B,CAAC;KACF,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;AACzB,CAAC,CAAA;AAED,kBAAe,cAAc,CAAA"}
@@ -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":"playwrightWrapping.js","sourceRoot":"","sources":["../src/playwrightWrapping.ts"],"names":[],"mappings":";;;AAcA,yDAM8B;AAEvB,MAAM,kBAAkB,GA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