testplane 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +8 -8
- package/build/src/browser/client-bridge/index.js +7 -4
- package/build/src/browser/client-bridge/index.js.map +1 -1
- package/build/src/browser/client-scripts/browser-utils/build/bundle.compat.js +1 -1
- package/build/src/browser/client-scripts/browser-utils/build/bundle.native.js +1 -1
- package/build/src/browser/client-scripts/browser-utils/tsc-out/client-scripts/shared/lib.compat.js +9 -1
- package/build/src/browser/client-scripts/browser-utils/tsc-out/client-scripts/shared/lib.native.js +5 -1
- package/build/src/browser/client-scripts/browser-utils/tsc-out/isomorphic/types.js +5 -6
- package/build/src/browser/client-scripts/calibrate.js +8 -1
- package/build/src/browser/client-scripts/screen-shooter/build/bundle.compat.js +36 -24
- package/build/src/browser/client-scripts/screen-shooter/build/bundle.native.js +21 -17
- package/build/src/browser/client-scripts/screen-shooter/tsc-out/client-scripts/screen-shooter/operations.js +11 -2
- package/build/src/browser/client-scripts/screen-shooter/tsc-out/client-scripts/screen-shooter/utils/dom.js +25 -1
- package/build/src/browser/client-scripts/screen-shooter/tsc-out/client-scripts/shared/lib.compat.js +9 -1
- package/build/src/browser/client-scripts/screen-shooter/tsc-out/client-scripts/shared/lib.native.js +5 -1
- package/build/src/browser/client-scripts/screen-shooter/tsc-out/isomorphic/types.js +5 -6
- package/build/src/browser/commands/assert-view/index.js +18 -12
- package/build/src/browser/commands/assert-view/index.js.map +1 -1
- package/build/src/browser/history/index.js +5 -0
- package/build/src/browser/history/index.js.map +1 -1
- package/build/src/browser/history/rrweb.js +49 -15
- package/build/src/browser/history/rrweb.js.map +1 -1
- package/build/src/browser/isomorphic/tsconfig.tsbuildinfo +1 -1
- package/build/src/browser/isomorphic/types.d.ts +6 -5
- package/build/src/browser/isomorphic/types.js +5 -6
- package/build/src/browser/isomorphic/types.js.map +1 -1
- package/build/src/browser/new-browser.d.ts +1 -0
- package/build/src/browser/new-browser.js +4 -1
- package/build/src/browser/new-browser.js.map +1 -1
- package/build/src/browser/screen-shooter/composite-image/index.js +4 -2
- package/build/src/browser/screen-shooter/composite-image/index.js.map +1 -1
- package/build/src/browser/screen-shooter/elements-screen-shooter.js +39 -28
- package/build/src/browser/screen-shooter/elements-screen-shooter.js.map +1 -1
- package/build/src/browser/screen-shooter/operations/wait-for-selectors-to-settle.d.ts +5 -1
- package/build/src/browser/screen-shooter/operations/wait-for-selectors-to-settle.js +32 -18
- package/build/src/browser/screen-shooter/operations/wait-for-selectors-to-settle.js.map +1 -1
- package/build/src/browser-installer/chromium/utils.js +1 -0
- package/build/src/browser-installer/chromium/utils.js.map +1 -1
- package/build/src/browser-installer/utils.js +50 -3
- package/build/src/browser-installer/utils.js.map +1 -1
- package/build/src/cli/index.js +10 -14
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/repl-options.d.ts +3 -0
- package/build/src/cli/repl-options.js +16 -0
- package/build/src/cli/repl-options.js.map +1 -0
- package/build/src/config/defaults.d.ts +1 -2
- package/build/src/runner/browser-env/vite/browser-modules/tsconfig.tsbuildinfo +1 -1
- package/build/src/utils/repl-module-hooks.js +75 -5
- package/build/src/utils/repl-module-hooks.js.map +1 -1
- package/package.json +8 -8
|
@@ -28,9 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.registerReplModuleHooks = void 0;
|
|
30
30
|
const nodeModule = __importStar(require("node:module"));
|
|
31
|
+
const commander_1 = require("@gemini-testing/commander");
|
|
32
|
+
const node_fs_1 = require("node:fs");
|
|
31
33
|
const node_path_1 = __importDefault(require("node:path"));
|
|
32
34
|
const node_url_1 = require("node:url");
|
|
33
35
|
const pirates_1 = require("pirates");
|
|
36
|
+
const repl_options_1 = require("../cli/repl-options");
|
|
34
37
|
const repl_instrumentation_1 = require("./repl-instrumentation");
|
|
35
38
|
const logger = __importStar(require("./logger"));
|
|
36
39
|
const TESTPLANE_REPL_MODULE_HOOK = Symbol.for("testplane.repl.module.hook");
|
|
@@ -40,6 +43,11 @@ const registerReplModuleHooks = () => {
|
|
|
40
43
|
if (processWithHook[TESTPLANE_REPL_MODULE_HOOK]) {
|
|
41
44
|
return;
|
|
42
45
|
}
|
|
46
|
+
const program = (0, repl_options_1.addReplOptions)(new commander_1.Command("testplane").allowUnknownOption().option("-h, --help"));
|
|
47
|
+
program.parse(process.argv);
|
|
48
|
+
if (!(0, repl_options_1.isReplModeEnabled)(program)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
43
51
|
const hook = registerNodeModuleHooks() || registerPiratesHook();
|
|
44
52
|
processWithHook[TESTPLANE_REPL_MODULE_HOOK] = hook;
|
|
45
53
|
};
|
|
@@ -51,7 +59,15 @@ function registerNodeModuleHooks() {
|
|
|
51
59
|
}
|
|
52
60
|
const hooks = registerHooks({
|
|
53
61
|
load(url, context, nextLoad) {
|
|
54
|
-
|
|
62
|
+
let result;
|
|
63
|
+
try {
|
|
64
|
+
result = nextLoad(url, context);
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
// https://github.com/nodejs/node/issues/57327
|
|
68
|
+
// Fixed for REPL instrumentation in Node 24.13.0; older versions mishandle CJS sources with mixed sync/async hooks.
|
|
69
|
+
return instrumentLoadAfterFailedLoad(url, context, err);
|
|
70
|
+
}
|
|
55
71
|
return instrumentLoadResult(url, result);
|
|
56
72
|
},
|
|
57
73
|
});
|
|
@@ -64,12 +80,30 @@ function registerPiratesHook() {
|
|
|
64
80
|
});
|
|
65
81
|
return { revert };
|
|
66
82
|
}
|
|
83
|
+
function instrumentLoadAfterFailedLoad(url, context, err) {
|
|
84
|
+
const sourceFile = getSourceFileFromUrl(url);
|
|
85
|
+
if (!isInvalidLoadSourceError(err) || !sourceFile || !shouldReadSourceFile(sourceFile)) {
|
|
86
|
+
throw err;
|
|
87
|
+
}
|
|
88
|
+
const source = readSourceFile(sourceFile);
|
|
89
|
+
if (source === null) {
|
|
90
|
+
throw err;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
format: getFallbackFormat(context, sourceFile),
|
|
94
|
+
shortCircuit: true,
|
|
95
|
+
source: shouldHandleSourceFile(sourceFile) ? safeInstrumentRepl(source, sourceFile) : source,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
67
98
|
function instrumentLoadResult(url, result) {
|
|
68
99
|
const sourceFile = getSourceFileFromUrl(url);
|
|
69
|
-
if (!sourceFile || !
|
|
100
|
+
if (!sourceFile || !shouldHandleSourceFile(sourceFile)) {
|
|
70
101
|
return result;
|
|
71
102
|
}
|
|
72
|
-
const
|
|
103
|
+
const resultSource = result.source;
|
|
104
|
+
const source = resultSource === null || resultSource === undefined
|
|
105
|
+
? readSourceFile(sourceFile)
|
|
106
|
+
: moduleSourceToString(resultSource);
|
|
73
107
|
if (source === null) {
|
|
74
108
|
return result;
|
|
75
109
|
}
|
|
@@ -84,6 +118,43 @@ function safeInstrumentRepl(source, sourceFile) {
|
|
|
84
118
|
return source;
|
|
85
119
|
}
|
|
86
120
|
}
|
|
121
|
+
function readSourceFile(sourceFile) {
|
|
122
|
+
try {
|
|
123
|
+
return (0, node_fs_1.readFileSync)(sourceFile, "utf8");
|
|
124
|
+
}
|
|
125
|
+
catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function isInvalidLoadSourceError(err) {
|
|
130
|
+
if (!(err instanceof Error)) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
const error = err;
|
|
134
|
+
return (error.code === "ERR_INVALID_RETURN_PROPERTY_VALUE" &&
|
|
135
|
+
error.message.includes('"source"') &&
|
|
136
|
+
error.message.includes('"load" hook'));
|
|
137
|
+
}
|
|
138
|
+
function shouldReadSourceFile(sourceFile) {
|
|
139
|
+
return TRANSFORM_CODE_EXTENSIONS.includes(node_path_1.default.extname(sourceFile));
|
|
140
|
+
}
|
|
141
|
+
function getFallbackFormat(context, sourceFile) {
|
|
142
|
+
if (context.format) {
|
|
143
|
+
return context.format;
|
|
144
|
+
}
|
|
145
|
+
switch (node_path_1.default.extname(sourceFile)) {
|
|
146
|
+
case ".mjs":
|
|
147
|
+
return "module";
|
|
148
|
+
case ".mts":
|
|
149
|
+
return "module-typescript";
|
|
150
|
+
case ".ts":
|
|
151
|
+
case ".tsx":
|
|
152
|
+
case ".cts":
|
|
153
|
+
return "commonjs-typescript";
|
|
154
|
+
default:
|
|
155
|
+
return "commonjs";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
87
158
|
function getSourceFileFromUrl(url) {
|
|
88
159
|
try {
|
|
89
160
|
return url.startsWith("file:") ? (0, node_url_1.fileURLToPath)(url) : null;
|
|
@@ -93,8 +164,7 @@ function getSourceFileFromUrl(url) {
|
|
|
93
164
|
}
|
|
94
165
|
}
|
|
95
166
|
function shouldHandleSourceFile(sourceFile) {
|
|
96
|
-
return (
|
|
97
|
-
!sourceFile.includes(`${node_path_1.default.sep}node_modules${node_path_1.default.sep}`));
|
|
167
|
+
return shouldReadSourceFile(sourceFile) && !sourceFile.includes(`${node_path_1.default.sep}node_modules${node_path_1.default.sep}`);
|
|
98
168
|
}
|
|
99
169
|
function moduleSourceToString(source) {
|
|
100
170
|
if (typeof source === "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl-module-hooks.js","sourceRoot":"","sources":["../../../src/utils/repl-module-hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA0C;AAE1C,0DAA6B;AAC7B,uCAAyC;AACzC,qCAAkC;AAClC,iEAAgE;AAChE,iDAAmC;AAEnC,MAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC5E,MAAM,yBAAyB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MA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ACjC;YACI,OAAO,UAAU,CAAC;IAC1B,CAAC;AACL,CAAC;AAED,SAAS,oBAAoB,CAAC,GAAW;IACrC,IAAI,CAAC;QACD,OAAO,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAA,wBAAa,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/D,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED,SAAS,sBAAsB,CAAC,UAAkB;IAC9C,OAAO,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,mBAAI,CAAC,GAAG,eAAe,mBAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AAC1G,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAoB;IAC9C,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,MAAM,YAAY,WAAW,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1C,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;IACvF,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testplane",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Tests framework based on mocha and wdio",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -35,11 +35,12 @@
|
|
|
35
35
|
"test-unit:generate-fixtures": "TS_NODE_PROJECT=test/tsconfig.json node -r ts-node/register -r tsconfig-paths/register test/src/browser/screen-shooter/composite-image/fixtures/generate.ts generate",
|
|
36
36
|
"test": "npm run test-unit && npm run check-types && npm run lint",
|
|
37
37
|
"test-integration": "TS_NODE_TRANSPILE_ONLY=1 node scripts/run-node-without-type-stripping.js ./node_modules/mocha/bin/_mocha -r ts-node/register test/integration/*/**",
|
|
38
|
-
"test-e2e": "npm run test-e2e-
|
|
39
|
-
"test-e2e-
|
|
40
|
-
"test-e2e
|
|
41
|
-
"test-e2e:
|
|
42
|
-
"test-e2e:
|
|
38
|
+
"test-e2e": "npm run test-e2e-mocha && npm run test-e2e-testplane",
|
|
39
|
+
"test-e2e-mocha": "_mocha \"test/e2e/**/*.test.js\" --ignore \"test/e2e/**/fixture-project/**\"",
|
|
40
|
+
"test-e2e-testplane": "npm run test-e2e-testplane:generate-fixtures && npm run test-e2e-testplane:run-tests",
|
|
41
|
+
"test-e2e-testplane:run-tests": "node bin/testplane --config test/e2e/testplane.config.ts",
|
|
42
|
+
"test-e2e-testplane:generate-fixtures": "node bin/testplane --config test/e2e/fixtures/basic-report/testplane.config.ts || true",
|
|
43
|
+
"test-e2e-testplane:gui": "node bin/testplane --config test/e2e/testplane.config.ts gui",
|
|
43
44
|
"test-browser-env": "TS_NODE_PROJECT=./test/browser-env/tsconfig.json node bin/testplane -r tsconfig-paths/register --config test/browser-env/testplane.config.ts",
|
|
44
45
|
"test-browser-env:gui": "TS_NODE_PROJECT=./test/browser-env/tsconfig.json node bin/testplane gui -r tsconfig-paths/register --config test/browser-env/testplane.config.ts",
|
|
45
46
|
"toc": "doctoc docs --title '### Contents'",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"@gemini-testing/commander": "2.15.4",
|
|
78
79
|
"@jspm/core": "2.0.1",
|
|
79
80
|
"@jsquash/png": "3.1.1",
|
|
80
|
-
"@puppeteer/browsers": "
|
|
81
|
+
"@puppeteer/browsers": "3.0.4",
|
|
81
82
|
"@testplane/wdio-protocols": "9.4.7",
|
|
82
83
|
"@testplane/wdio-utils": "9.5.4",
|
|
83
84
|
"@testplane/webdriverio": "9.5.28",
|
|
@@ -91,7 +92,6 @@
|
|
|
91
92
|
"error-stack-parser": "2.1.4",
|
|
92
93
|
"esbuild": "0.25.8",
|
|
93
94
|
"expect-webdriverio": "3.6.0",
|
|
94
|
-
"extract-zip": "2.0.1",
|
|
95
95
|
"fs-extra": "7.0.1",
|
|
96
96
|
"geckodriver": "4.5.0",
|
|
97
97
|
"gemini-configparser": "1.4.2",
|