@axe-core/watcher 3.16.0-next.ffc99c11 → 3.16.0-rc.ceaeb8da
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cypress.d.ts +0 -2
- package/dist/cypress.js +5 -9
- package/dist/cypress.js.map +1 -1
- package/dist/cypressCommands.js +40 -62
- package/dist/cypressCommands.js.map +1 -1
- package/dist/playwright.js +0 -2
- package/dist/playwright.js.map +1 -1
- package/dist/playwrightWrapping.d.ts +0 -1
- package/dist/playwrightWrapping.js +7 -15
- package/dist/playwrightWrapping.js.map +1 -1
- package/dist/puppeteer.js +0 -2
- package/dist/puppeteer.js.map +1 -1
- package/dist/utils/headlessNotSupportedError.test.d.ts +1 -0
- package/dist/utils/headlessNotSupportedError.test.js +21 -0
- package/dist/utils/headlessNotSupportedError.test.js.map +1 -0
- package/dist/utils/initializeSession.test.d.ts +1 -0
- package/dist/utils/initializeSession.test.js +177 -0
- package/dist/utils/initializeSession.test.js.map +1 -0
- package/dist/utils/isValidExcludePattern.test.d.ts +1 -0
- package/dist/utils/isValidExcludePattern.test.js +17 -0
- package/dist/utils/isValidExcludePattern.test.js.map +1 -0
- package/dist/utils/mergeChromeArgs.test.d.ts +1 -0
- package/dist/utils/mergeChromeArgs.test.js +257 -0
- package/dist/utils/mergeChromeArgs.test.js.map +1 -0
- package/dist/utils/proxyHandlers.d.ts +0 -2
- package/dist/utils/proxyHandlers.js +1 -14
- package/dist/utils/proxyHandlers.js.map +1 -1
- package/dist/utils/proxyHandlers.test.d.ts +1 -0
- package/dist/utils/proxyHandlers.test.js +27 -0
- package/dist/utils/proxyHandlers.test.js.map +1 -0
- package/dist/utils/validateAxeRunContext.test.d.ts +1 -0
- package/dist/utils/validateAxeRunContext.test.js +97 -0
- package/dist/utils/validateAxeRunContext.test.js.map +1 -0
- package/dist/utils/validateAxeRunOptions.test.d.ts +1 -0
- package/dist/utils/validateAxeRunOptions.test.js +215 -0
- package/dist/utils/validateAxeRunOptions.test.js.map +1 -0
- package/dist/utils/writeVariables.test.d.ts +1 -0
- package/dist/utils/writeVariables.test.js +200 -0
- package/dist/utils/writeVariables.test.js.map +1 -0
- package/dist/wdio.js +0 -2
- package/dist/wdio.js.map +1 -1
- package/dist/webdriver.js +0 -2
- package/dist/webdriver.js.map +1 -1
- package/extension/background.js +1 -1
- package/extension/content.js +1 -1
- package/package.json +4 -4
- package/dist/utils/assertVariablesWereWritten.d.ts +0 -1
- package/dist/utils/assertVariablesWereWritten.js +0 -15
- package/dist/utils/assertVariablesWereWritten.js.map +0 -1
package/dist/cypress.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
import { type Configuration } from './utils/writeVariables';
|
2
|
-
export declare const cypressConfigRunFlag = "__AXE_WATCHER_CYPRESS_CONFIG_RUN";
|
3
|
-
export declare const cypressConfigAutoAnalyzeFlag = "__AXE_WATCHER_AUTO_ANALYZE";
|
4
2
|
/**
|
5
3
|
* Create a Cypress config that uses the axe Watcher extension.
|
6
4
|
*
|
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 =
|
6
|
+
exports.cypressConfig = 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,8 +12,7 @@ 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
|
-
|
16
|
-
exports.cypressConfigAutoAnalyzeFlag = '__AXE_WATCHER_AUTO_ANALYZE';
|
15
|
+
const cypressConfigRunFlag = '__AXE_WATCHER_CYPRESS_CONFIG_RUN';
|
17
16
|
const cypressConfig = (config) => {
|
18
17
|
var _a;
|
19
18
|
const { axe, ...userConfig } = config;
|
@@ -32,12 +31,12 @@ const cypressConfig = (config) => {
|
|
32
31
|
});
|
33
32
|
if ((_a = userConfig.e2e) === null || _a === void 0 ? void 0 : _a.env) {
|
34
33
|
userConfig.e2e.env = Object.assign({}, userConfig.e2e.env, {
|
35
|
-
[
|
34
|
+
[cypressConfigRunFlag]: true
|
36
35
|
});
|
37
36
|
}
|
38
37
|
else {
|
39
38
|
userConfig.env = Object.assign({}, userConfig.env, {
|
40
|
-
[
|
39
|
+
[cypressConfigRunFlag]: true
|
41
40
|
});
|
42
41
|
}
|
43
42
|
if (hasWatcherDebug) {
|
@@ -45,9 +44,6 @@ const cypressConfig = (config) => {
|
|
45
44
|
__AXE_WATCHER_DEBUG: hasWatcherDebug
|
46
45
|
});
|
47
46
|
}
|
48
|
-
userConfig.env = Object.assign({}, userConfig.env, {
|
49
|
-
[exports.cypressConfigAutoAnalyzeFlag]: axe.autoAnalyze === undefined ? true : axe.autoAnalyze
|
50
|
-
});
|
51
47
|
return {
|
52
48
|
...userConfig,
|
53
49
|
e2e: {
|
@@ -59,7 +55,7 @@ const cypressConfig = (config) => {
|
|
59
55
|
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));
|
60
56
|
if (userNodeEventConfig) {
|
61
57
|
userNodeEventConfig.env = Object.assign({}, userNodeEventConfig.env, {
|
62
|
-
[
|
58
|
+
[cypressConfigRunFlag]: true
|
63
59
|
});
|
64
60
|
}
|
65
61
|
on('task', {
|
package/dist/cypress.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cypress.js","sourceRoot":"","sources":["../src/cypress.ts"],"names":[],"mappings":";;;;;;AACA,gFAAuD;AACvD,sEAA6C;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,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,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;AAjJY,QAAA,aAAa,iBAiJzB"}
|
package/dist/cypressCommands.js
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.WRAPPED_COMMANDS = void 0;
|
4
4
|
const cypressConfigRunFlag = '__AXE_WATCHER_CYPRESS_CONFIG_RUN';
|
5
|
-
|
6
|
-
let isStopped = !Cypress.env(cypressConfigAutoAnalyzeFlag);
|
5
|
+
let isStopped = false;
|
7
6
|
exports.WRAPPED_COMMANDS = [
|
8
7
|
'blur',
|
9
8
|
'check',
|
@@ -76,9 +75,7 @@ Cypress.Commands.addQuery('__axeRestoreSubject', function (subjectChain, timeout
|
|
76
75
|
return () => cy.getSubjectFromChain(subjectChain);
|
77
76
|
});
|
78
77
|
function axeWatcherFlushCommand() {
|
79
|
-
logDebugAxeWatcher({
|
80
|
-
message: `Flush: Invoked (${isStopped ? 'will not' : 'may'} analyze implicitly)`
|
81
|
-
});
|
78
|
+
logDebugAxeWatcher({ message: 'Flush: Invoked (may analyze implicitly)' });
|
82
79
|
cy.window().then(win => {
|
83
80
|
if (!shouldAnalyzeLocation(win.location)) {
|
84
81
|
return Promise.resolve();
|
@@ -95,9 +92,7 @@ function axeWatcherFlushCommand() {
|
|
95
92
|
};
|
96
93
|
win.addEventListener('axe:flush-end', onFlushEnd);
|
97
94
|
win.addEventListener('axe:result', onAxeResult);
|
98
|
-
const event = new CustomEvent('axe:flush-start'
|
99
|
-
detail: { isStopped }
|
100
|
-
});
|
95
|
+
const event = new CustomEvent('axe:flush-start');
|
101
96
|
win.dispatchEvent(event);
|
102
97
|
}).then(results => {
|
103
98
|
cy.task('__uploadAxeWatcherResults', { results }, { log: false });
|
@@ -108,94 +103,77 @@ function axeWatcherFlushCommand() {
|
|
108
103
|
const doesCypressCommandExist = (commandName) => {
|
109
104
|
return !!Cypress.cy[commandName];
|
110
105
|
};
|
111
|
-
function axeWatcherAnalyzeCommand(
|
112
|
-
const userRequestedAnalyze = __UserRequestedAnalyze;
|
113
|
-
const message = userRequestedAnalyze
|
114
|
-
? 'User requested analysis'
|
115
|
-
: `Invoked${__Method ? ` - ${__Method}` : ''}`;
|
106
|
+
function axeWatcherAnalyzeCommand({ __Method, __UserRequestedAnalyze = true } = {}) {
|
116
107
|
logDebugAxeWatcher({
|
117
|
-
message: `Analyze: ${
|
108
|
+
message: `Analyze: Invoked${__Method ? ` - ${__Method}` : ''}`
|
118
109
|
});
|
110
|
+
const userRequestedAnalyze = __UserRequestedAnalyze;
|
119
111
|
cy.window().then(win => {
|
120
112
|
if (!shouldAnalyzeLocation(win.location)) {
|
121
|
-
|
122
|
-
message: `Analyze: Skipped - invalid protocol`
|
123
|
-
});
|
124
|
-
return Promise.resolve({
|
125
|
-
message: `Skipped - Invalid protocol`,
|
126
|
-
subject
|
127
|
-
});
|
113
|
+
return Promise.resolve({ message: `Skipped - Invalid protocol` });
|
128
114
|
}
|
129
115
|
if (isStopped && !userRequestedAnalyze) {
|
130
|
-
|
131
|
-
message: `Analyze: Skipped - manual mode`
|
132
|
-
});
|
133
|
-
return Promise.resolve({ message: `Skipped (Manual mode)`, subject });
|
116
|
+
return Promise.resolve({ message: `Skipped (Manual mode)` });
|
134
117
|
}
|
135
118
|
return new Promise(resolve => {
|
136
119
|
const fn = (event) => {
|
137
120
|
win.removeEventListener('axe:manual-mode-analyze-done', fn);
|
138
|
-
resolve(
|
121
|
+
resolve(event.detail);
|
139
122
|
};
|
140
123
|
win.addEventListener('axe:manual-mode-analyze-done', fn);
|
141
124
|
const event = new CustomEvent('axe:manual-mode-analyze', {
|
142
|
-
detail: { userRequestedAnalyze
|
125
|
+
detail: { userRequestedAnalyze }
|
143
126
|
});
|
144
127
|
win.dispatchEvent(event);
|
145
128
|
}).then(result => {
|
146
129
|
logDebugAxeWatcher({ message: `Analyze: ${result === null || result === void 0 ? void 0 : result.message}` });
|
147
|
-
if (result === null || result === void 0 ? void 0 : result.subject) {
|
148
|
-
return result.subject;
|
149
|
-
}
|
150
130
|
});
|
151
131
|
});
|
152
132
|
}
|
153
|
-
function axeWatcherStartCommand(
|
154
|
-
cy.window().then(
|
155
|
-
|
156
|
-
|
157
|
-
|
133
|
+
function axeWatcherStartCommand() {
|
134
|
+
cy.window().then(win => {
|
135
|
+
if (!shouldAnalyzeLocation(win.location)) {
|
136
|
+
return Promise.resolve();
|
137
|
+
}
|
138
|
+
return new Promise(resolve => {
|
139
|
+
const fn = () => {
|
140
|
+
win.removeEventListener('axe:start-auto-mode-done', fn);
|
141
|
+
resolve();
|
142
|
+
};
|
143
|
+
win.addEventListener('axe:start-auto-mode-done', fn);
|
144
|
+
const event = new CustomEvent('axe:start-auto-mode');
|
145
|
+
win.dispatchEvent(event);
|
146
|
+
}).then(() => {
|
147
|
+
isStopped = false;
|
148
|
+
});
|
158
149
|
});
|
159
150
|
}
|
160
|
-
function axeWatcherStopCommand(
|
161
|
-
logDebugAxeWatcher({ message: `Stop: Invoked` });
|
151
|
+
function axeWatcherStopCommand() {
|
162
152
|
cy.window().then(win => {
|
163
153
|
if (!shouldAnalyzeLocation(win.location)) {
|
164
|
-
|
165
|
-
message: `Stop: Skipped - invalid protocol`
|
166
|
-
});
|
167
|
-
return Promise.resolve({
|
168
|
-
message: `Skipped - Invalid protocol`,
|
169
|
-
subject
|
170
|
-
});
|
154
|
+
return Promise.resolve();
|
171
155
|
}
|
172
156
|
return new Promise(resolve => {
|
173
|
-
const fn = (
|
174
|
-
win.removeEventListener('axe:
|
175
|
-
resolve(
|
157
|
+
const fn = () => {
|
158
|
+
win.removeEventListener('axe:stop-auto-mode-done', fn);
|
159
|
+
resolve();
|
176
160
|
};
|
177
|
-
win.addEventListener('axe:
|
178
|
-
const event = new CustomEvent('axe:
|
179
|
-
detail: { isCypress: true }
|
180
|
-
});
|
161
|
+
win.addEventListener('axe:stop-auto-mode-done', fn);
|
162
|
+
const event = new CustomEvent('axe:stop-auto-mode');
|
181
163
|
win.dispatchEvent(event);
|
182
|
-
}).then(
|
183
|
-
logDebugAxeWatcher({ message: `Stop: ${result === null || result === void 0 ? void 0 : result.message}` });
|
164
|
+
}).then(() => {
|
184
165
|
isStopped = true;
|
185
|
-
if (result === null || result === void 0 ? void 0 : result.subject) {
|
186
|
-
return result.subject;
|
187
|
-
}
|
188
166
|
});
|
189
167
|
});
|
190
168
|
}
|
191
169
|
if (!doesCypressCommandExist('axeAnalyze')) {
|
192
|
-
Cypress.Commands.add('
|
170
|
+
Cypress.Commands.add('axeAnalyze', axeWatcherAnalyzeCommand);
|
193
171
|
}
|
194
172
|
Cypress.Commands.add('axeFlush', axeWatcherFlushCommand);
|
195
|
-
Cypress.Commands.add('axeStop',
|
196
|
-
Cypress.Commands.add('axeStart',
|
197
|
-
Cypress.Commands.add('axeWatcherAnalyze',
|
198
|
-
Cypress.Commands.add('axeWatcherStart',
|
199
|
-
Cypress.Commands.add('axeWatcherStop',
|
173
|
+
Cypress.Commands.add('axeStop', axeWatcherStopCommand);
|
174
|
+
Cypress.Commands.add('axeStart', axeWatcherStartCommand);
|
175
|
+
Cypress.Commands.add('axeWatcherAnalyze', axeWatcherAnalyzeCommand);
|
176
|
+
Cypress.Commands.add('axeWatcherStart', axeWatcherStartCommand);
|
177
|
+
Cypress.Commands.add('axeWatcherStop', axeWatcherStopCommand);
|
200
178
|
Cypress.Commands.add('axeWatcherFlush', axeWatcherFlushCommand);
|
201
179
|
//# sourceMappingURL=cypressCommands.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cypressCommands.js","sourceRoot":"","sources":["../src/cypressCommands.ts"],"names":[],"mappings":";;;AAYA,MAAM,oBAAoB,GAAG,kCAAkC,CAAA;
|
1
|
+
{"version":3,"file":"cypressCommands.js","sourceRoot":"","sources":["../src/cypressCommands.ts"],"names":[],"mappings":";;;AAYA,MAAM,oBAAoB,GAAG,kCAAkC,CAAA;AAyG/D,IAAI,SAAS,GAAG,KAAK,CAAA;AAKR,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,mBA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C,GAAG,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAAA;AAC7D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAA"}
|
package/dist/playwright.js
CHANGED
@@ -9,7 +9,6 @@ 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");
|
13
12
|
function playwrightConfig(opts) {
|
14
13
|
const { axe, ...config } = opts;
|
15
14
|
let { args = [] } = config;
|
@@ -28,7 +27,6 @@ function playwrightConfig(opts) {
|
|
28
27
|
class PlaywrightController extends Controller_1.default {
|
29
28
|
constructor(driver) {
|
30
29
|
super({ debugLoggerName: 'PlaywrightController' });
|
31
|
-
(0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Playwright', 'playwrightConfig()');
|
32
30
|
this.driver = driver;
|
33
31
|
}
|
34
32
|
async executeScript(fn, ...args) {
|
package/dist/playwright.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../src/playwright.ts"],"names":[],"mappings":";;;;;;
|
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,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;AAjBD,oDAiBC;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,7 +9,6 @@ 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;
|
13
12
|
export declare const wrapKeyboard: (keyboard: PossiblyWrapped<Keyboard>, controller: PlaywrightController) => Keyboard;
|
14
13
|
export declare const wrapMouse: (mouse: PossiblyWrapped<Mouse>, controller: PlaywrightController) => Mouse;
|
15
14
|
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.
|
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;
|
4
4
|
const proxyHandlers_1 = require("./utils/proxyHandlers");
|
5
5
|
const wrapBrowserContext = (browserContext, controller) => {
|
6
6
|
if ((0, proxyHandlers_1.isWrapped)(browserContext)) {
|
@@ -97,9 +97,6 @@ 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);
|
103
100
|
case 'waitForSelector':
|
104
101
|
return async (...args) => {
|
105
102
|
const el = await target.waitForSelector(...args);
|
@@ -110,6 +107,8 @@ const wrapPage = (page, controller) => {
|
|
110
107
|
};
|
111
108
|
case '$$eval':
|
112
109
|
case '$eval':
|
110
|
+
case 'addScriptTag':
|
111
|
+
case 'addStyleTag':
|
113
112
|
case 'bringToFront':
|
114
113
|
case 'check':
|
115
114
|
case 'click':
|
@@ -145,7 +144,7 @@ const wrapPage = (page, controller) => {
|
|
145
144
|
case 'waitForFunction':
|
146
145
|
return async (...args) => {
|
147
146
|
const handle = await target[prop](...args);
|
148
|
-
return (0, exports.
|
147
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
149
148
|
};
|
150
149
|
case 'frame':
|
151
150
|
case 'mainFrame':
|
@@ -276,7 +275,7 @@ const wrapFrame = (frame, controller) => {
|
|
276
275
|
case 'evaluateHandle':
|
277
276
|
return async (...args) => {
|
278
277
|
const el = await target.evaluateHandle(...args);
|
279
|
-
return (0, exports.
|
278
|
+
return (0, exports.wrapJSHandle)(el, controller);
|
280
279
|
};
|
281
280
|
case 'childFrames':
|
282
281
|
return (...args) => {
|
@@ -434,7 +433,7 @@ const wrapLocator = (locator, controller) => {
|
|
434
433
|
case 'evaluateHandle':
|
435
434
|
return async (...args) => {
|
436
435
|
const handle = await target.evaluateHandle(...args);
|
437
|
-
return (0, exports.
|
436
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
438
437
|
};
|
439
438
|
case 'and':
|
440
439
|
case 'filter':
|
@@ -492,7 +491,7 @@ const wrapJSHandle = (jsHandle, controller) => {
|
|
492
491
|
case 'evaluateHandle':
|
493
492
|
return async (...args) => {
|
494
493
|
const handle = await target.evaluateHandle(...args);
|
495
|
-
return (0, exports.
|
494
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
496
495
|
};
|
497
496
|
default:
|
498
497
|
return (0, proxyHandlers_1.proxiedGetWithoutAnalyze)(target, prop);
|
@@ -503,13 +502,6 @@ const wrapJSHandle = (jsHandle, controller) => {
|
|
503
502
|
return jsHandleProxy;
|
504
503
|
};
|
505
504
|
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;
|
513
505
|
const wrapKeyboard = (keyboard, controller) => {
|
514
506
|
if ((0, proxyHandlers_1.isWrapped)(keyboard)) {
|
515
507
|
return keyboard;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"playwrightWrapping.js","sourceRoot":"","sources":["../src/playwrightWrapping.ts"],"names":[],"mappings":";;;AAcA,yDAO8B;AAEvB,MAAM,kBAAkB,GAAG,CAChC,cAA+C,EAC/C,UAAgC,EAChB,EAAE;IAClB,IAAI,IAAA,yBAAS,EAAC,cAAc,CAAC,EAAE,CAAC;QAC9B,OAAO,cAAc,CAAA;IACvB,CAAC;IAED,MAAM,mBAAmB,GAAG,IAAI,KAAK,CAAC,cAAc,EAAE;QACpD,GAAG,CAAC,MAAM,EAAE,IAA0B;YACpC,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,SAAS;oBACZ,OAAO,KAAK,EACV,GAAG,IAA2C,EAC/B,EAAE;wBACjB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA;wBAC1C,OAAO,IAAA,gBAAQ,EAAC,IAAI,EAAE,UAAU,CAAC,CAAA;oBACnC,CAAC,CAAA;gBACH,KAAK,SAAS;oBACZ,OAAO,GAAmB,EAAE;wBAC1B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAA;wBAChC,IAAI,CAAC,OAAO,EAAE,CAAC;4BACb,OAAO,IAAI,CAAA;wBACb,CAAC;wBACD,OAAO,IAAA,mBAAW,EAAC,OAAO,EAAE,UAAU,CAAC,CAAA;oBACzC,CAAC,CAAA;gBACH,KAAK,OAAO;oBACV,OAAO,CAAC,GAAG,IAAyC,EAAU,EAAE;wBAC9D,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;wBACnC,OAAO,KAAK,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AAG,CAC7B,WAAyC,EACzC,UAAgC,EACnB,EAAE;IACf,IAAI,IAAA,yBAAS,EAAC,WAAW,CAAC,EAAE,CAAC;QAC3B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,MAAM,gBAAgB,GAAG,IAAI,KAAK,CAAC,WAAW,EAAE;QAC9C,GAAG,CAAC,MAAM,EAAE,IAAuB;YACjC,QAAQ,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,7 +9,6 @@ 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");
|
13
12
|
function headlessNotSupportedError(config) {
|
14
13
|
if (!(config === null || config === void 0 ? void 0 : config.headless) || config.headless === 'new') {
|
15
14
|
return;
|
@@ -35,7 +34,6 @@ function puppeteerConfig(opts) {
|
|
35
34
|
class PuppeteerController extends Controller_1.default {
|
36
35
|
constructor(driver) {
|
37
36
|
super({ debugLoggerName: 'PuppeteerController' });
|
38
|
-
(0, assertVariablesWereWritten_1.assertVariablesWereWritten)('Puppeteer', 'puppeteerConfig()');
|
39
37
|
this.driver = driver;
|
40
38
|
}
|
41
39
|
async executeScript(fn, ...args) {
|
package/dist/puppeteer.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../src/puppeteer.ts"],"names":[],"mappings":";;;;;;
|
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,KAAK,EAAE,CAAC;QACnD,OAAM;IACR,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QAChC,MAAM,IAAI,qDAAyB,CACjC,mGAAmG,CACpG,CAAA;IACH,CAAC;IAED,MAAM,IAAI,qDAAyB,CACjC,8HAA8H,CAC/H,CAAA;AACH,CAAC;AAQD,SAAgB,eAAe,CAAC,IAA6B;IAC3D,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,yBAAyB,CACvB,MAAyD,CAC1D,CAAA;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,mBAAoB,SAAQ,oBAAU;IAGjD,YAAY,MAAY;QACtB,KAAK,CAAC,EAAE,eAAe,EAAE,qBAAqB,EAAE,CAAC,CAAA;QACjD,IAAI,CAAC,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;AAfD,kDAeC;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 @@
|
|
1
|
+
import 'mocha';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
require("mocha");
|
4
|
+
const chai_1 = require("chai");
|
5
|
+
const headlessNotSupportedError_1 = require("./headlessNotSupportedError");
|
6
|
+
describe('headlessNotSupportedError', () => {
|
7
|
+
describe('given no `extendedMessage`', () => {
|
8
|
+
it('should return the default message', () => {
|
9
|
+
const error = new headlessNotSupportedError_1.HeadlessNotSupportedError();
|
10
|
+
chai_1.assert.equal(error.message, (0, headlessNotSupportedError_1.generateMessage)());
|
11
|
+
});
|
12
|
+
});
|
13
|
+
describe('given an `extendedMessage`', () => {
|
14
|
+
it('should return the default message with the `extendedMessage` appended', () => {
|
15
|
+
const extendedMessage = 'extended message';
|
16
|
+
const error = new headlessNotSupportedError_1.HeadlessNotSupportedError(extendedMessage);
|
17
|
+
chai_1.assert.equal(error.message, (0, headlessNotSupportedError_1.generateMessage)(extendedMessage));
|
18
|
+
});
|
19
|
+
});
|
20
|
+
});
|
21
|
+
//# sourceMappingURL=headlessNotSupportedError.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"headlessNotSupportedError.test.js","sourceRoot":"","sources":["../../src/utils/headlessNotSupportedError.test.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,+BAA6B;AAC7B,2EAGoC;AAEpC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;QAC1C,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC3C,MAAM,KAAK,GAAG,IAAI,qDAAyB,EAAE,CAAA;YAE7C,aAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,IAAA,2CAAe,GAAE,CAAC,CAAA;QAChD,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;QAC1C,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;YAC/E,MAAM,eAAe,GAAG,kBAAkB,CAAA;YAC1C,MAAM,KAAK,GAAG,IAAI,qDAAyB,CAAC,eAAe,CAAC,CAAA;YAE5D,aAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,IAAA,2CAAe,EAAC,eAAe,CAAC,CAAC,CAAA;QAC/D,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
import 'mocha';
|