@axe-core/watcher 3.14.0-rc.bdd7e1d2 → 3.14.2-rc.02e3b6bc

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cypress.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type Configuration } from './utils/writeVariables';
2
+ export declare const cypressConfigRunFlag = "__AXE_WATCHER_CYPRESS_CONFIG_RUN";
2
3
  /**
3
4
  * Create a Cypress config that uses the axe Watcher extension.
4
5
  *
package/dist/cypress.js CHANGED
@@ -3,7 +3,7 @@ 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
- exports.cypressConfig = void 0;
6
+ exports.cypressConfig = exports.cypressConfigRunFlag = void 0;
7
7
  const sendResultsToServer_1 = __importDefault(require("./sendResultsToServer"));
8
8
  const EventForwarder_1 = __importDefault(require("./EventForwarder"));
9
9
  const writeVariables_1 = __importDefault(require("./utils/writeVariables"));
@@ -12,12 +12,14 @@ const headlessNotSupportedError_1 = require("./utils/headlessNotSupportedError")
12
12
  const mergeChromeArgs_1 = __importDefault(require("./utils/mergeChromeArgs"));
13
13
  const createDebugger_1 = __importDefault(require("./createDebugger"));
14
14
  const debugLogger = (0, createDebugger_1.default)('CypressController');
15
+ exports.cypressConfigRunFlag = '__AXE_WATCHER_CYPRESS_CONFIG_RUN';
15
16
  /**
16
17
  * Create a Cypress config that uses the axe Watcher extension.
17
18
  *
18
19
  * @param config Cypress config to extend
19
20
  */
20
21
  const cypressConfig = (config) => {
22
+ var _a;
21
23
  const { axe, ...userConfig } = config;
22
24
  const { DEBUG } = process.env;
23
25
  const hasWatcherDebug = DEBUG && DEBUG.includes('axe-watcher');
@@ -35,13 +37,23 @@ const cypressConfig = (config) => {
35
37
  '*/__cypress/iframes/*'
36
38
  ]
37
39
  });
40
+ if ((_a = userConfig.e2e) === null || _a === void 0 ? void 0 : _a.env) {
41
+ userConfig.e2e.env = Object.assign({}, userConfig.e2e.env, {
42
+ [exports.cypressConfigRunFlag]: true
43
+ });
44
+ }
45
+ else {
46
+ userConfig.env = Object.assign({}, userConfig.env, {
47
+ [exports.cypressConfigRunFlag]: true
48
+ });
49
+ }
50
+ // TODO: ensure that __AXE_WATCHER_DEBUG is being set in each scenario, including in the e2e.env. See https://github.com/dequelabs/jazzband/pull/1290
51
+ if (hasWatcherDebug) {
52
+ userConfig.env = Object.assign({}, userConfig.env, {
53
+ __AXE_WATCHER_DEBUG: hasWatcherDebug
54
+ });
55
+ }
38
56
  return {
39
- ...(hasWatcherDebug && {
40
- env: {
41
- ...config.env,
42
- __AXE_WATCHER_DEBUG: hasWatcherDebug
43
- }
44
- }),
45
57
  ...userConfig,
46
58
  e2e: {
47
59
  ...userConfig.e2e,
@@ -73,14 +85,24 @@ const cypressConfig = (config) => {
73
85
  * ensure we wait for the user's `setupNodeEvents` to resolve.
74
86
  */
75
87
  const userNodeEventConfig = await ((_b = (_a = userConfig.e2e) === null || _a === void 0 ? void 0 : _a.setupNodeEvents) === null || _b === void 0 ? void 0 : _b.call(_a, on, ...args));
88
+ if (userNodeEventConfig) {
89
+ /*
90
+ The user-provided `setupNodeEvents` returned a new config, which will override the env we set above,
91
+ so we set it again
92
+ */
93
+ userNodeEventConfig.env = Object.assign({}, userNodeEventConfig.env, {
94
+ [exports.cypressConfigRunFlag]: true
95
+ });
96
+ }
76
97
  on('task', {
77
- __uploadAxeWatcherResults: async (results) => {
78
- if (!results.length) {
98
+ __uploadAxeWatcherResults: async ({ results, skipped_url }) => {
99
+ if (!(results === null || results === void 0 ? void 0 : results.length) && !skipped_url) {
79
100
  // Indicates to Cypress that the event has been handled.
80
101
  // @see https://docs.cypress.io/api/commands/task#Usage
81
102
  return null;
82
103
  }
83
104
  await (0, sendResultsToServer_1.default)({
105
+ skipped_url,
84
106
  results,
85
107
  debugLogger
86
108
  });
@@ -1 +1 @@
1
- {"version":3,"file":"cypress.js","sourceRoot":"","sources":["../src/cypress.ts"],"names":[],"m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;4BACX,OAAO;4BACP,WAAW;yBACZ,CAAC,CAAA;wBACF,OAAO,IAAI,CAAA;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;oBACrD,2FAA2F;oBAC3F,mEAAmE;oBACnE,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;oBAED,mEAAmE;oBACnE,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAA;oBACvC,aAAa,CAAC,IAAI,GAAG,IAAA,yBAAe,EAAC,YAAY,EAAE;wBACjD,sBAAsB,EAAE,KAAK;qBAC9B,CAAC,CAAA;oBAEF,OAAO,aAAa,CAAA;gBACtB,CAAC,CAAC,CAAA;gBAEF;;;mBAGG;gBACH,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;gBAEjC,OAAO,mBAAmB,CAAA;YAC5B,CAAC;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAjJY,QAAA,aAAa,iBAiJzB"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WRAPPED_COMMANDS = void 0;
4
+ const cypress_1 = require("./cypress");
4
5
  /**
5
6
  * Has the user stopped automatic mode.
6
7
  *
@@ -39,6 +40,10 @@ const logDebugAxeWatcher = ({ message }) => {
39
40
  }
40
41
  };
41
42
  const shouldAnalyzeLocation = (location) => ['http:', 'https:', 'file:'].includes(location.protocol);
43
+ // If cypressConfig was never invoked, fail immediately
44
+ if (!Cypress.env(cypress_1.cypressConfigRunFlag)) {
45
+ throw new Error(`Cypress is not configured for axe watcher. Please ensure that axe watcher's cypressConfig() is invoked within Cypress' defineConfig() in your ${Cypress.config('configFile')}. All tests will fail with this error.`);
46
+ }
42
47
  /**
43
48
  * Wrapped commands queue an axe run before calling the original method. This can seem
44
49
  * a little counter-intuitive, but the reason we do this is so that we make sure we wait
@@ -148,7 +153,7 @@ function axeWatcherFlushCommand() {
148
153
  const event = new CustomEvent('axe:flush-start');
149
154
  win.dispatchEvent(event);
150
155
  }).then(results => {
151
- cy.task('__uploadAxeWatcherResults', results, { log: false });
156
+ cy.task('__uploadAxeWatcherResults', { results }, { log: false });
152
157
  logDebugAxeWatcher({ message: 'Flush: complete' });
153
158
  });
154
159
  });
@@ -1 +1 @@
1
- {"version":3,"file":"cypressCommands.js","sourceRoot":"","sources":["../src/cypressCommands.ts"],"names":[],"mappings":";;;AAgGA;;;;;;;GAOG;AAEH,IAAI,SAAS,GAAG,KAAK,CAAA;AAIrB,4DAA4D;AAC/C,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;AAOD,4CAA4C;AAC5C,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAA4B,EAAQ,EAAE;IACzE,mEAAmE;IACnE,0CAA0C;IAC1C,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC;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wEAAwE;AACxE,gFAAgF;AAChF,gEAAgE;AAChE,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,CAAC;IAC3C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAA;AAC9D,CAAC;AAED,kDAAkD;AAClD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAA;AACxD,iDAAiD;AACjD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAA;AACtD,kDAAkD;AAClD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAA;AAExD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAA;AACnE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAA;AAC/D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAAA;AAC7D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAA"}
@@ -122,7 +122,6 @@ const wrapPage = (page, controller) => {
122
122
  const els = await host[prop](...args);
123
123
  return els.map(el => (0, exports.wrapElementHandle)(el, controller));
124
124
  };
125
- case 'authenticate':
126
125
  case 'bringToFront':
127
126
  case 'click':
128
127
  case 'deleteCookie':
@@ -1 +1 @@
1
- {"version":3,"file":"puppeteerWrapping.js","sourceRoot":"","sources":["../src/puppeteerWrapping.ts"],"names":[],"mappings":";;;AAiBA,yDAM8B;AA4CvB,MAAM,kBAAkB,GAAG,CAChC,cAA8B,EAC9B,UAA+B,EACf,EAAE;IAClB,IAAI,IAAA,yBAAS,EAAC,cAAc,CAAC,EAAE,CAAC;QAC9B,OAAO,cAAc,CAAA;IACvB,CAAC;IAED,MAAM,KAA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AAU,CAAC,CAAA;gBAChD,KAAK,OAAO,CAAC;gBACb,KAAK,MAAM,CAAC;gBACZ,KAAK,OAAO,CAAC;gBACb,KAAK,QAAQ;oBACX,OAAO,IAAA,yCAAyB,EAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;gBAC1D;oBACE,OAAO,IAAA,wCAAwB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YAC/C,CAAC;QACH,CAAC;KACF,CAAC,CAAA;IAEF,IAAA,6BAAa,EAAC,KAAK,CAAC,CAAA;IAEpB,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAjDY,QAAA,WAAW,eAiDvB;AAEM,MAAM,YAAY,GAAG,CAC1B,KAAgC,EAChC,UAA+B,EACrB,EAAE;IACZ,IAAI,IAAA,yBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE;QAC7B,GAAG,CAAC,IAAI,EAAE,IAAoB;YAC5B,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,WAAW;oBACd,OAAO,GAAyB,EAAE;wBAChC,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;wBAC3B,OAAO,EAAE,CAAC,CAAC,CAAC,IAAA,yBAAiB,EAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;oBACtD,CAAC,CAAA;gBACH;oBACE,OAAO,IAAA,wCAAwB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YAC/C,CAAC;QACH,CAAC;KACF,CAAC,CAAA;IAEF,IAAA,6BAAa,EAAC,KAAK,CAAC,CAAA;IAEpB,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAzBY,QAAA,YAAY,gBAyBxB"}
@@ -14,10 +14,12 @@ export interface Result {
14
14
  screenshot_id: string | null;
15
15
  run_context: ElementContext | null;
16
16
  run_options: RunOptions | null;
17
+ skipped_url: string | null;
17
18
  }
18
19
  interface SendResultsToServerParams {
19
20
  results: Result[];
20
21
  debugLogger: debug.Debugger;
22
+ skipped_url?: string | null;
21
23
  }
22
24
  export declare const sendResultsToServer: ({ results, debugLogger }: SendResultsToServerParams) => Promise<void>;
23
25
  export default sendResultsToServer;
@@ -26,21 +26,10 @@ const sendResultsToServer = async ({ results, debugLogger }) => {
26
26
  totalBytes: Buffer.byteLength(JSON.stringify(results))
27
27
  });
28
28
  debugLogger('SendResultsToServer: Session ID', { session_id });
29
- // Add an correlation ID to each result/screenshot combination (see #622).
30
- results.forEach(result => {
31
- if (result.screenshot) {
32
- result.screenshot_id = (0, uuid_1.v4)();
33
- }
34
- });
35
- // Send the results in batches.
36
- for (let i = 0; i < results.length; i += exports.MAX_PAGE_STATES_PER_REQUEST) {
37
- // Remove screenshots from results. They will be sent separately.
38
- const batch = results
39
- .slice(i, i + exports.MAX_PAGE_STATES_PER_REQUEST)
40
- .map(r => ({ ...r, screenshot: null }));
29
+ const putResults = async (bodyResults = []) => {
41
30
  const body = {
42
31
  axe_watcher_version: version,
43
- results: batch,
32
+ results: bodyResults,
44
33
  ...git_data
45
34
  };
46
35
  const res = await (0, node_fetch_1.default)(resultsURL, {
@@ -54,7 +43,7 @@ const sendResultsToServer = async ({ results, debugLogger }) => {
54
43
  });
55
44
  if (!res.ok) {
56
45
  debugLogger('SendResultsToServer: Failed to send results', {
57
- batchResults: batch.length,
46
+ batchResults: bodyResults.length,
58
47
  reqSize: Buffer.byteLength(JSON.stringify(body)),
59
48
  resStatus: res.status,
60
49
  resStatusText: res.statusText
@@ -64,12 +53,26 @@ const sendResultsToServer = async ({ results, debugLogger }) => {
64
53
  }
65
54
  else {
66
55
  debugLogger('SendResultsToServer: Successfully sent', {
67
- batchResults: batch.length,
56
+ batchResults: bodyResults.length,
68
57
  reqSize: Buffer.byteLength(JSON.stringify(body)),
69
58
  resStatus: res.status,
70
59
  resStatusText: res.statusText
71
60
  });
72
61
  }
62
+ };
63
+ // Add an correlation ID to each result/screenshot combination (see #622).
64
+ results.forEach(result => {
65
+ if (result.screenshot) {
66
+ result.screenshot_id = (0, uuid_1.v4)();
67
+ }
68
+ });
69
+ // Send the results in batches.
70
+ for (let i = 0; i < results.length; i += exports.MAX_PAGE_STATES_PER_REQUEST) {
71
+ // Remove screenshots from results. They will be sent separately.
72
+ const batch = results
73
+ .slice(i, i + exports.MAX_PAGE_STATES_PER_REQUEST)
74
+ .map(r => ({ ...r, screenshot: null }));
75
+ await putResults(batch);
73
76
  }
74
77
  // Send screenshots.
75
78
  await Promise.all(results.map(async ({ screenshot, screenshot_id }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"sendResultsToServer.js","sourceRoot":"","sources":["../src/sendResultsToServer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAE9B,+BAAiC;AAGjC,0EAAiD;AAEjD,gFAAgF;AAChF,iEAAiE;AACjE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAE9C;;;;;GAKG;AAEU,QAAA,2BAA2B,GAAG,CAAC,CAAA;AAqBrC,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACxC,OAAO,EACP,WAAW,EACe,EAAiB,EAAE;IAC7C,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAA,uBAAa,GAAE,CAAA;IAErE,MAAM,UAAU,GAAG,IAAI,GAAG,CACxB,6BAA6B,UAAU,EAAE,EACzC,UAAU,CACX,CAAA;IACD,MAAM,cAAc,GAAG,IAAI,GAAG,CAC5B,6BAA6B,UAAU,cAAc,EACrD,UAAU,CACX,CAAA;IAED,WAAW,CAAC,uCAAuC,EAAE;QACnD,KAAK,EAAE,OAAO,CAAC,MAAM;QACrB,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;KACvD,CAAC,CAAA;IACF,WAAW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U,CAAC,KAAK,CAAC,CAAA;IACzB,CAAC;IACD,oBAAoB;IACpB,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE;QAClD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAM;QACR,CAAC;QAED,yDAAyD;QACzD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,EAAE,aAAuB,CAAC,CAAA;QAE9D,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,EAAE;YAC9B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE;gBACP,cAAc,EAAE,WAAW;gBAC3B,WAAW,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,UAAU;SACjB,CAAC,CAAA;QAEF,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAA;QACxE,CAAC;IACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC,CAAA;AApGY,QAAA,mBAAmB,uBAoG/B;AAED,kBAAe,2BAAmB,CAAA"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sync_request_1 = __importDefault(require("sync-request"));
7
7
  const assert_1 = __importDefault(require("assert"));
8
8
  const createDebugger_1 = __importDefault(require("../createDebugger"));
9
+ const uuid_1 = require("uuid");
9
10
  const debugLogger = (0, createDebugger_1.default)('config:initializeSession');
10
11
  /** Initialize a new session. */
11
12
  function initializeSession({ apiKey, serverURL, watcherVersion, sessionID, buildID, gitCommitSha }) {
@@ -38,8 +39,26 @@ function initializeSession({ apiKey, serverURL, watcherVersion, sessionID, build
38
39
  // eslint-disable-next-line no-console -- We want to emit a warning to the user's console
39
40
  console.warn(body.warnings.join(', '));
40
41
  }
41
- debugLogger('Session initialized successfully:', body.session_id);
42
- return body.session_id;
42
+ if (body.session_id) {
43
+ debugLogger('Session initialized successfully:', body.session_id);
44
+ return body.session_id;
45
+ }
46
+ /**
47
+ * Here we account for an old version of Walnut's initializeSession, which does not return a session_id.
48
+ * See https://github.com/dequelabs/jazzband/issues/1451
49
+ * TODO: This can eventually be removed when this can no longer be the case. https://github.com/dequelabs/jazzband/issues/1453
50
+ */
51
+ if (sessionID) {
52
+ debugLogger('Session failed to initialize. Returning the provided sessionID:', sessionID);
53
+ return sessionID;
54
+ }
55
+ if (buildID) {
56
+ debugLogger('Session failed to initialize based on the provided buildID:', buildID);
57
+ throw new Error('Failed to initialize session based on build_id. Try again later.');
58
+ }
59
+ const generatedID = (0, uuid_1.v4)();
60
+ debugLogger('Session did not initialize successfully. Returning a generated UUID:', generatedID);
61
+ return generatedID;
43
62
  }
44
63
  exports.default = initializeSession;
45
64
  //# sourceMappingURL=initializeSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initializeSession.js","sourceRoot":"","sources":["../../src/utils/initializeSession.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,oDAA2B;AAC3B,uEAA8C;AAE9C,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,0BAA0B,CAAC,CAAA;AAkB9D,gCAAgC;AAChC,SAAS,iBAAiB,CAAC,EACzB,MAAM,EACN,SAAS,EACT,cAAc,EACd,SAAS,EACT,OAAO,EACP,YAAY,EACY;IACxB,IAAA,gBAAM,EAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IACrC,IAAA,gBAAM,EAAC,SAAS,EAAE,wBAAwB,CAAC,CAAA;IAC3C,IAAA,gBAAM,EAAC,cAAc,EAAE,6BAA6B,CAAC,CAAA;IACrD,IAAA,gBAAM,EACJ,CAAC,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,CAAC,EAC7C,6BAA6B,CAC9B,CA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pB,CAAC;AAED,kBAAe,iBAAiB,CAAA"}
@@ -123,6 +123,61 @@ describe('initializeSession', () => {
123
123
  chai_1.assert.doesNotThrow(() => invoke);
124
124
  chai_1.assert.deepEqual(invoke, expectedBody.session_id);
125
125
  });
126
+ describe('and no session_id is returned', () => {
127
+ const expectedBody = {
128
+ errors: [],
129
+ warnings: []
130
+ };
131
+ const sessionID = 'xyz';
132
+ describe('and a sessionID is provided', () => {
133
+ it('uses the sessionID', () => {
134
+ const requestStub = sinon_1.default.stub().returns({
135
+ statusCode: 200,
136
+ getBody: () => JSON.stringify(expectedBody)
137
+ });
138
+ const fn = (0, proxyquire_1.default)('./initializeSession', {
139
+ 'sync-request': requestStub
140
+ }).default;
141
+ const invoke = fn({
142
+ ...defaultParams,
143
+ ...{ sessionID }
144
+ });
145
+ chai_1.assert.deepEqual(invoke, sessionID);
146
+ });
147
+ });
148
+ describe('and a buildID is provided', () => {
149
+ it('throws', () => {
150
+ const requestStub = sinon_1.default.stub().returns({
151
+ statusCode: 200,
152
+ getBody: () => JSON.stringify(expectedBody)
153
+ });
154
+ const fn = (0, proxyquire_1.default)('./initializeSession', {
155
+ 'sync-request': requestStub
156
+ }).default;
157
+ const buildID = 'def';
158
+ chai_1.assert.throws(() => fn({
159
+ ...defaultParams,
160
+ ...{ buildID }
161
+ }), 'Failed to initialize session based on build_id. Try again later.');
162
+ });
163
+ });
164
+ describe('and neither a sessionID nor a buildID are provided', () => {
165
+ it('uses a generated UUID', () => {
166
+ const requestStub = sinon_1.default.stub().returns({
167
+ statusCode: 200,
168
+ getBody: () => JSON.stringify(expectedBody)
169
+ });
170
+ const generatedID = 'ghi';
171
+ const uuidStub = sinon_1.default.stub().returns(generatedID);
172
+ const fn = (0, proxyquire_1.default)('./initializeSession', {
173
+ 'sync-request': requestStub,
174
+ uuid: { v4: uuidStub }
175
+ }).default;
176
+ const invoke = fn(defaultParams);
177
+ chai_1.assert.deepEqual(invoke, generatedID);
178
+ });
179
+ });
180
+ });
126
181
  });
127
182
  });
128
183
  //# sourceMappingURL=initializeSession.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initializeSession.test.js","sourceRoot":"","sources":["../../src/utils/initializeSession.test.ts"],"names":[],"mappings":";;;;;AAAA,iBAAc;AACd,+BAA6B;AAC7B,kDAAyB;AACzB,4DAAmC;AACnC,4EAE4B;AAE5B,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,SAAS,CAAC,eAAK,CAAC,OAAO,CAAC,CAAA;IAExB,MAAM,aAAa,GAA4B;QAC7C,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,uBAAuB;QAClC,cAAc,EAAE,OAAO;QACvB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,IAAI;KACnB,CAAA;IAED,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;YAC3C,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;gBACzB,aAAM,CAAC,MAAM,CAAC,GAAG,EAAE;oBACjB,4CAA4C;oBAC5C,IAAA,2BAAiB,EAAC,EAAE,CAAC,CAAA;gBACvB,CAAC,EAAE,qBAAqB,CAAC,CAAA;YAC3B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;YAC9C,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;gBACzB,aAAM,CAAC,MAAM,CAAC,GAAG,EAAE;oBACjB,+CAA+C;oBAC/C,IAAA,2BAAiB,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAA;gBACtC,CAAC,EAAE,wBAAwB,CAAC,CAAA;YAC9B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;YACnD,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;gBACzB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SAAS,CAAC,YAAY,CAAC;qBAC5C,CAAC,CAAA;oBACF,MAAM,WAAW,GAAG,KAAK,CAAA;oBACzB,MAAM,QAAQ,GAAG,eAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;oBAClD,MAAM,EAAE,GAAG,IAAA,oBAAU,EAAC,qBAAqB,EAAE;wBAC3C,cAAc,EAAE,WAAW;wBAC3B,IAAI,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE;qBACvB,CAAC,CAAC,OAAmC,CAAA;oBAEtC,MAAM,MAAM,GAAG,EAAE,CAAC,aAAa,CAAC,CAAA;oBAEhC,aAAM,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;gBACvC,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -89,7 +89,7 @@ experimentalAdvancedRules, excludeUrlPatterns, buildID }) {
89
89
  gitData.git_commit_message = info === null || info === void 0 ? void 0 : info.message;
90
90
  }
91
91
  debugLogger('Initializing axe Watcher session');
92
- let session_id = (0, initializeSession_1.default)({
92
+ const session_id = (0, initializeSession_1.default)({
93
93
  apiKey,
94
94
  serverURL: urlString,
95
95
  watcherVersion: version,
@@ -113,7 +113,7 @@ experimentalAdvancedRules, excludeUrlPatterns, buildID }) {
113
113
  debugLogger('Reading session ID from file for WDIO Test Runner');
114
114
  try {
115
115
  const data = JSON.parse(fs_1.default.readFileSync(constants_1.PATH_TO_SESSION_FILE, 'utf8'));
116
- session_id = data.id;
116
+ sessionId = data.id;
117
117
  }
118
118
  catch (error) {
119
119
  throw new Error(`Unable to read session configuration: ${error}`);
@@ -123,7 +123,7 @@ experimentalAdvancedRules, excludeUrlPatterns, buildID }) {
123
123
  const variables = {
124
124
  api_key: apiKey,
125
125
  server_url: urlString,
126
- session_id,
126
+ session_id: session_id || sessionId,
127
127
  take_screenshots: !!takeScreenshots,
128
128
  auto_analyze: !!autoAnalyze,
129
129
  cypress: !!cypress,
@@ -1 +1 @@
1
- {"version":3,"file":"writeVariables.js","sourceRoot":"","sources":["../../src/utils/writeVariables.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAA6B;AAC7B,4CAAmB;AACnB,2CAIoB;AACpB,mEAAgF;AAChF,uEAA8C;AAC9C,4EAAmD;AACnD,mEAA+D;AAC/D,oFAA2D;AAE3D,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,uBAAuB,CAAC,CAAA;AAE3D,gFAAgF;AAChF,iEAAiE;AACjE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAgGjD,6EAA6E;AAC7E,SAAS,cAAc,CAAC,EACtB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU;AACV,yDAAyD;AACzD,eAAe;AACf,yDAAyD;AACzD,yBAAyB,EACzB,kBAAkB,EAClB,OAAO,EACc;IACrB,oDAAoD;IACpD,WAAW,CAAC,yBAAyB,EAAE;QACrC,MAAM,EAAE,YAAY;QACpB,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,CAAC;QACjD,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,GAAG,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,CAAC;QAC/C,GAAG,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,CAAC;QAC/C,GAAG,CAAC,kBAAkB,KAAK,SAAS,IAAI,EAAE,kBAAkB,EAAE,CAAC;QAC/D,GAAG,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,OAAO,EAAE,CAAC;KAC1C,CAAC,CAAA;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AAM,IAAI,KAAK,CAAC,yCAAyC,KAAK,EAAE,CAAC,CAAA;YACnE,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAc;QAC3B,OAAO,EAAE,MAAM;QACf,UAAU,EAAE,SAAS;QACrB,UAAU;QACV,gBAAgB,EAAE,CAAC,CAAC,eAAe;QACnC,YAAY,EAAE,CAAC,CAAC,WAAW;QAC3B,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,2BAA2B,EAAE,CAAC,CAAC,yBAAyB;QACxD,WAAW,EAAE,UAAU,IAAI,IAAI;QAC/B,WAAW,EAAE,UAAU,IAAI,IAAI;QAC/B,QAAQ,EAAE,OAAO;QACjB,oBAAoB,EAAE,kBAAkB,IAAI,IAAI;KACjD,CAAA;IAED,YAAE,CAAC,aAAa,CAAC,uCAA2B,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAA;AAC1E,CAAC;AAED,kBAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"writeVariables.js","sourceRoot":"","sources":["../../src/utils/writeVariables.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAA6B;AAC7B,4CAAmB;AACnB,2CAIoB;AACpB,mEAAgF;AAChF,uEAA8C;AAC9C,4EAAmD;AACnD,mEAA+D;AAC/D,oFAA2D;AAE3D,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,uBAAuB,CAAC,CAAA;AAE3D,gFAAgF;AAChF,iEAAiE;AACjE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAgGjD,6EAA6E;AAC7E,SAAS,cAAc,CAAC,EACtB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU;AACV,yDAAyD;AACzD,eAAe;AACf,yDAAyD;AACzD,yBAAyB,EACzB,kBAAkB,EAClB,OAAO,EACc;IACrB,oDAAoD;IACpD,WAAW,CAAC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