@smoothdeploy/playwright 1.62.1 → 1.63.0-beta-1791031101000
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/lib/cli/testActions.js +1 -0
- package/lib/common/index.js +44 -75
- package/lib/common/index.js.txt +10 -10
- package/lib/index.js +36 -25
- package/lib/matchers/expect.js +50 -44
- package/lib/matchers/expect.js.txt +3 -3
- package/lib/mcp/test/browserBackend.js +12 -2
- package/lib/program.js +2 -3
- package/lib/runner/index.js +767 -321
- package/lib/runner/index.js.txt +23 -21
- package/lib/transform/babelBundle.js +4 -5
- package/lib/transform/babelBundle.js.txt +2 -2
- package/lib/transform/esmLoader.js +9 -30
- package/lib/transform/esmLoader.js.txt +3 -3
- package/lib/worker/workerProcessEntry.js +26 -13
- package/lib/worker/workerProcessEntry.js.txt +3 -3
- package/package.json +2 -5
- package/types/test.d.ts +237 -11
- package/types/testReporter.d.ts +52 -1
package/lib/runner/index.js.txt
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
1
|
# packages/playwright/lib/runner/index.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 324.8 KB
|
|
3
3
|
|
|
4
|
-
## Inlined (
|
|
4
|
+
## Inlined (49)
|
|
5
5
|
1.3 KB packages/playwright/src/isomorphic/events.ts
|
|
6
6
|
0.1 KB packages/playwright/src/isomorphic/folders.ts
|
|
7
7
|
0.9 KB packages/playwright/src/isomorphic/stringInternPool.ts
|
|
8
|
-
16.
|
|
8
|
+
16.1 KB packages/playwright/src/isomorphic/teleReceiver.ts
|
|
9
9
|
3.9 KB packages/playwright/src/isomorphic/teleSuiteUpdater.ts
|
|
10
10
|
4.8 KB packages/playwright/src/isomorphic/testServerConnection.ts
|
|
11
11
|
0.0 KB packages/playwright/src/isomorphic/testTree.ts
|
|
12
|
-
5.
|
|
12
|
+
5.4 KB packages/playwright/src/plugins/gitCommitInfoPlugin.ts
|
|
13
13
|
8.6 KB packages/playwright/src/plugins/webServerPlugin.ts
|
|
14
|
-
21.
|
|
14
|
+
21.5 KB packages/playwright/src/reporters/base.ts
|
|
15
15
|
4.0 KB packages/playwright/src/reporters/blob.ts
|
|
16
|
-
2.
|
|
16
|
+
2.5 KB packages/playwright/src/reporters/dot.ts
|
|
17
17
|
0.1 KB packages/playwright/src/reporters/empty.ts
|
|
18
|
-
3.
|
|
18
|
+
3.7 KB packages/playwright/src/reporters/github.ts
|
|
19
19
|
26.4 KB packages/playwright/src/reporters/html.ts
|
|
20
20
|
3.2 KB packages/playwright/src/reporters/internalReporter.ts
|
|
21
|
-
7.
|
|
22
|
-
10.
|
|
23
|
-
|
|
24
|
-
9.
|
|
21
|
+
7.2 KB packages/playwright/src/reporters/json.ts
|
|
22
|
+
10.5 KB packages/playwright/src/reporters/junit.ts
|
|
23
|
+
4.0 KB packages/playwright/src/reporters/line.ts
|
|
24
|
+
9.3 KB packages/playwright/src/reporters/list.ts
|
|
25
25
|
1.4 KB packages/playwright/src/reporters/listModeReporter.ts
|
|
26
26
|
18.5 KB packages/playwright/src/reporters/merge.ts
|
|
27
27
|
3.0 KB packages/playwright/src/reporters/multiplexer.ts
|
|
28
|
+
8.9 KB packages/playwright/src/reporters/perfetto.ts
|
|
28
29
|
2.1 KB packages/playwright/src/reporters/reporterV2.ts
|
|
29
|
-
|
|
30
|
+
13.3 KB packages/playwright/src/reporters/smoothdeploy.ts
|
|
31
|
+
3.1 KB packages/playwright/src/reporters/smoothdeployMatch.ts
|
|
30
32
|
8.8 KB packages/playwright/src/reporters/teleEmitter.ts
|
|
31
|
-
20.
|
|
32
|
-
1.
|
|
33
|
+
20.6 KB packages/playwright/src/runner/dispatcher.ts
|
|
34
|
+
1.8 KB packages/playwright/src/runner/fsWatcher.ts
|
|
33
35
|
0.5 KB packages/playwright/src/runner/index.ts
|
|
34
|
-
1.
|
|
36
|
+
1.7 KB packages/playwright/src/runner/lastRun.ts
|
|
35
37
|
1.6 KB packages/playwright/src/runner/loaderHost.ts
|
|
36
38
|
13.3 KB packages/playwright/src/runner/loadUtils.ts
|
|
37
|
-
|
|
39
|
+
6.1 KB packages/playwright/src/runner/processHost.ts
|
|
38
40
|
7.8 KB packages/playwright/src/runner/projectUtils.ts
|
|
39
41
|
5.5 KB packages/playwright/src/runner/rebase.ts
|
|
40
|
-
3.
|
|
42
|
+
3.4 KB packages/playwright/src/runner/reporters.ts
|
|
41
43
|
2.4 KB packages/playwright/src/runner/reporterTestRun.ts
|
|
42
44
|
1.6 KB packages/playwright/src/runner/sigIntWatcher.ts
|
|
43
45
|
3.5 KB packages/playwright/src/runner/taskRunner.ts
|
|
44
|
-
14.
|
|
45
|
-
3.
|
|
46
|
-
|
|
46
|
+
14.3 KB packages/playwright/src/runner/tasks.ts
|
|
47
|
+
3.8 KB packages/playwright/src/runner/testGroups.ts
|
|
48
|
+
13.0 KB packages/playwright/src/runner/testRunner.ts
|
|
47
49
|
9.3 KB packages/playwright/src/runner/testServer.ts
|
|
48
50
|
0.2 KB packages/playwright/src/runner/uiModeReporter.ts
|
|
49
51
|
1.7 KB packages/playwright/src/runner/vcs.ts
|
|
50
|
-
13.
|
|
52
|
+
13.0 KB packages/playwright/src/runner/watchMode.ts
|
|
51
53
|
2.1 KB packages/playwright/src/runner/workerHost.ts
|
|
52
54
|
|
|
53
55
|
## External (8)
|
|
@@ -72151,7 +72151,7 @@ var import_helper_plugin_utils = __toESM(require_lib15());
|
|
|
72151
72151
|
var import_core = __toESM(require_lib27());
|
|
72152
72152
|
var traverse = import_traverse.default;
|
|
72153
72153
|
var nodeMajorVersion = +process.versions.node.split(".")[0];
|
|
72154
|
-
function babelTransformOptions(isTypeScript2, isModule,
|
|
72154
|
+
function babelTransformOptions(isTypeScript2, isModule, pluginsEpilogue, jsxImportSource) {
|
|
72155
72155
|
const plugins = [
|
|
72156
72156
|
[require_lib28(), { deprecatedAssertSyntax: true }]
|
|
72157
72157
|
];
|
|
@@ -72237,7 +72237,6 @@ function babelTransformOptions(isTypeScript2, isModule, pluginsPrologue, plugins
|
|
|
72237
72237
|
[require_lib26(), { onlyRemoveTypeImports: false }]
|
|
72238
72238
|
] : [],
|
|
72239
72239
|
plugins: [
|
|
72240
|
-
...pluginsPrologue.map(([name, options]) => [require(name), options]),
|
|
72241
72240
|
...plugins,
|
|
72242
72241
|
...pluginsEpilogue.map(([name, options]) => [require(name), options])
|
|
72243
72242
|
],
|
|
@@ -72249,19 +72248,19 @@ var isTransforming = false;
|
|
|
72249
72248
|
function isTypeScript(filename) {
|
|
72250
72249
|
return filename.endsWith(".ts") || filename.endsWith(".tsx") || filename.endsWith(".mts") || filename.endsWith(".cts");
|
|
72251
72250
|
}
|
|
72252
|
-
function babelTransform(code, filename, isModule,
|
|
72251
|
+
function babelTransform(code, filename, isModule, pluginsEpilogue, jsxImportSource) {
|
|
72253
72252
|
if (isTransforming)
|
|
72254
72253
|
return null;
|
|
72255
72254
|
isTransforming = true;
|
|
72256
72255
|
try {
|
|
72257
|
-
const options = babelTransformOptions(isTypeScript(filename), isModule,
|
|
72256
|
+
const options = babelTransformOptions(isTypeScript(filename), isModule, pluginsEpilogue, jsxImportSource);
|
|
72258
72257
|
return babel.transform(code, { filename, ...options });
|
|
72259
72258
|
} finally {
|
|
72260
72259
|
isTransforming = false;
|
|
72261
72260
|
}
|
|
72262
72261
|
}
|
|
72263
72262
|
function babelParse(code, filename, isModule) {
|
|
72264
|
-
const options = babelTransformOptions(isTypeScript(filename), isModule, []
|
|
72263
|
+
const options = babelTransformOptions(isTypeScript(filename), isModule, []);
|
|
72265
72264
|
return babel.parse(code, { filename, ...options });
|
|
72266
72265
|
}
|
|
72267
72266
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# packages/playwright/lib/transform/babelBundle.js
|
|
2
|
-
# total: 2833.
|
|
2
|
+
# total: 2833.5 KB
|
|
3
3
|
|
|
4
4
|
## Inlined (319)
|
|
5
5
|
7.9 KB node_modules/@babel/code-frame/lib/index.js
|
|
@@ -320,6 +320,6 @@
|
|
|
320
320
|
3.1 KB node_modules/supports-color/index.js
|
|
321
321
|
0.3 KB node_modules/yallist/iterator.js
|
|
322
322
|
9.7 KB node_modules/yallist/yallist.js
|
|
323
|
-
4.
|
|
323
|
+
4.1 KB packages/playwright/src/transform/babelBundle.ts
|
|
324
324
|
|
|
325
325
|
## External (0)
|
|
@@ -4199,7 +4199,6 @@ var cacheDir = process.env.PWTEST_CACHE_DIR || (() => {
|
|
|
4199
4199
|
var sourceMaps = /* @__PURE__ */ new Map();
|
|
4200
4200
|
var memoryCache = /* @__PURE__ */ new Map();
|
|
4201
4201
|
var fileDependencies = /* @__PURE__ */ new Map();
|
|
4202
|
-
var externalDependencies = /* @__PURE__ */ new Map();
|
|
4203
4202
|
function installSourceMapSupport() {
|
|
4204
4203
|
Error.stackTraceLimit = 200;
|
|
4205
4204
|
import_source_map_support.default.install({
|
|
@@ -4262,25 +4261,22 @@ function getFromCompilationCache(filename, contentHash, moduleUrl) {
|
|
|
4262
4261
|
const cachePath = calculateCachePath(filename, cacheFolderName, hashPrefix);
|
|
4263
4262
|
const codePath = cachePath + ".js";
|
|
4264
4263
|
const sourceMapPath = cachePath + ".map";
|
|
4265
|
-
const dataPath = cachePath + ".data";
|
|
4266
4264
|
try {
|
|
4267
4265
|
const cachedCode = readCodeCache(codePath);
|
|
4268
|
-
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath,
|
|
4266
|
+
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath, moduleUrl });
|
|
4269
4267
|
return { cachedCode, serializedCache };
|
|
4270
4268
|
} catch {
|
|
4271
4269
|
}
|
|
4272
4270
|
return {
|
|
4273
|
-
addToCache: (code, map
|
|
4271
|
+
addToCache: (code, map) => {
|
|
4274
4272
|
if ((0, import_globals.isWorkerProcess)())
|
|
4275
4273
|
return {};
|
|
4276
4274
|
clearOldCacheEntries(cacheFolderName, filePathHash);
|
|
4277
4275
|
import_fs.default.mkdirSync(import_path.default.dirname(cachePath), { recursive: true });
|
|
4278
4276
|
if (map)
|
|
4279
4277
|
import_fs.default.writeFileSync(sourceMapPath, JSON.stringify(map), "utf8");
|
|
4280
|
-
if (data.size)
|
|
4281
|
-
import_fs.default.writeFileSync(dataPath, JSON.stringify(Object.fromEntries(data.entries()), void 0, 2), "utf8");
|
|
4282
4278
|
writeCodeCache(codePath, code);
|
|
4283
|
-
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath,
|
|
4279
|
+
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath, moduleUrl });
|
|
4284
4280
|
return { serializedCache };
|
|
4285
4281
|
}
|
|
4286
4282
|
};
|
|
@@ -4289,8 +4285,7 @@ function serializeCompilationCache() {
|
|
|
4289
4285
|
return {
|
|
4290
4286
|
sourceMaps: [...sourceMaps.entries()],
|
|
4291
4287
|
memoryCache: [...memoryCache.entries()],
|
|
4292
|
-
fileDependencies: [...fileDependencies.entries()].map(([filename, deps]) => [filename, [...deps]])
|
|
4293
|
-
externalDependencies: [...externalDependencies.entries()].map(([filename, deps]) => [filename, [...deps]])
|
|
4288
|
+
fileDependencies: [...fileDependencies.entries()].map(([filename, deps]) => [filename, [...deps]])
|
|
4294
4289
|
};
|
|
4295
4290
|
}
|
|
4296
4291
|
function addToCompilationCache(payload) {
|
|
@@ -4302,10 +4297,6 @@ function addToCompilationCache(payload) {
|
|
|
4302
4297
|
const existing = fileDependencies.get(entry[0]) || [];
|
|
4303
4298
|
fileDependencies.set(entry[0], /* @__PURE__ */ new Set([...entry[1], ...existing]));
|
|
4304
4299
|
}
|
|
4305
|
-
for (const entry of payload.externalDependencies) {
|
|
4306
|
-
const existing = externalDependencies.get(entry[0]) || [];
|
|
4307
|
-
externalDependencies.set(entry[0], /* @__PURE__ */ new Set([...entry[1], ...existing]));
|
|
4308
|
-
}
|
|
4309
4300
|
}
|
|
4310
4301
|
function calculateFilePathHash(filePath) {
|
|
4311
4302
|
return calculateSha1(filePath).substring(0, 10);
|
|
@@ -7706,7 +7697,6 @@ function addHook(transformHook2, shouldTransform2, extensions) {
|
|
|
7706
7697
|
var version = import_package2.packageJSON.version;
|
|
7707
7698
|
var cachedTSConfigs = /* @__PURE__ */ new Map();
|
|
7708
7699
|
var _transformConfig = {
|
|
7709
|
-
babelPlugins: [],
|
|
7710
7700
|
external: []
|
|
7711
7701
|
};
|
|
7712
7702
|
var _externalMatcher = () => false;
|
|
@@ -7831,35 +7821,24 @@ function shouldTransform(filename) {
|
|
|
7831
7821
|
return false;
|
|
7832
7822
|
return !belongsToNodeModules(filename);
|
|
7833
7823
|
}
|
|
7834
|
-
var transformData;
|
|
7835
|
-
function setTransformData(pluginName, value) {
|
|
7836
|
-
transformData.set(pluginName, value);
|
|
7837
|
-
}
|
|
7838
7824
|
function transformHook(originalCode, filename, moduleUrl) {
|
|
7839
7825
|
const hasPreprocessor = process.env.PW_TEST_SOURCE_TRANSFORM && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE.split(pathSeparator).some((f) => filename.startsWith(f));
|
|
7840
|
-
const pluginsPrologue = _transformConfig.babelPlugins;
|
|
7841
7826
|
const pluginsEpilogue = hasPreprocessor ? [[process.env.PW_TEST_SOURCE_TRANSFORM]] : [];
|
|
7842
|
-
const hash = calculateHash(originalCode, filename, !!moduleUrl,
|
|
7827
|
+
const hash = calculateHash(originalCode, filename, !!moduleUrl, pluginsEpilogue);
|
|
7843
7828
|
const { cachedCode, addToCache, serializedCache } = getFromCompilationCache(filename, hash, moduleUrl);
|
|
7844
7829
|
if (cachedCode !== void 0)
|
|
7845
7830
|
return { code: cachedCode, serializedCache };
|
|
7846
7831
|
process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";
|
|
7847
7832
|
const { babelTransform } = require((0, import_package2.libPath)("transform", "babelBundle"));
|
|
7848
|
-
|
|
7849
|
-
const setTransformDataForPlugin = (key, value) => transformData.set(key, value);
|
|
7850
|
-
const wrappedPrologue = pluginsPrologue.map(([name, opts]) => [
|
|
7851
|
-
name,
|
|
7852
|
-
{ ...opts || {}, setTransformData: setTransformDataForPlugin }
|
|
7853
|
-
]);
|
|
7854
|
-
const babelResult = babelTransform(originalCode, filename, !!moduleUrl, wrappedPrologue, pluginsEpilogue, _transformConfig.jsxImportSource);
|
|
7833
|
+
const babelResult = babelTransform(originalCode, filename, !!moduleUrl, pluginsEpilogue, _transformConfig.jsxImportSource);
|
|
7855
7834
|
if (!babelResult?.code)
|
|
7856
7835
|
return { code: originalCode, serializedCache };
|
|
7857
7836
|
const { code, map } = babelResult;
|
|
7858
|
-
const added = addToCache(code, map
|
|
7837
|
+
const added = addToCache(code, map);
|
|
7859
7838
|
return { code, serializedCache: added.serializedCache };
|
|
7860
7839
|
}
|
|
7861
|
-
function calculateHash(content, filePath, isModule2,
|
|
7862
|
-
const hash = import_crypto5.default.createHash("sha1").update(isModule2 ? "esm" : "no_esm").update(content).update(filePath).update(version).update(
|
|
7840
|
+
function calculateHash(content, filePath, isModule2, pluginsEpilogue) {
|
|
7841
|
+
const hash = import_crypto5.default.createHash("sha1").update(isModule2 ? "esm" : "no_esm").update(content).update(filePath).update(version).update(pluginsEpilogue.map((p) => p[0]).join(",")).digest("hex");
|
|
7863
7842
|
return hash;
|
|
7864
7843
|
}
|
|
7865
7844
|
async function requireOrImport(file) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# packages/playwright/lib/transform/esmLoader.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 282.4 KB
|
|
3
3
|
|
|
4
4
|
## Inlined (51)
|
|
5
5
|
1.3 KB node_modules/balanced-match/dist/esm/index.js
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
3.1 KB node_modules/supports-color/index.js
|
|
42
42
|
0.1 KB packages/isomorphic/rtti.ts
|
|
43
43
|
0.2 KB packages/isomorphic/stringUtils.ts
|
|
44
|
-
|
|
44
|
+
5.9 KB packages/playwright/src/transform/compilationCache.ts
|
|
45
45
|
3.1 KB packages/playwright/src/transform/esmLoader.ts
|
|
46
46
|
1.7 KB packages/playwright/src/transform/esmLoaderSync.ts
|
|
47
47
|
1.1 KB packages/playwright/src/transform/pirates.ts
|
|
48
48
|
1.1 KB packages/playwright/src/transform/portTransport.ts
|
|
49
|
-
11.
|
|
49
|
+
11.1 KB packages/playwright/src/transform/transform.ts
|
|
50
50
|
2.9 KB packages/playwright/src/transform/tsconfig-loader.ts
|
|
51
51
|
4.7 KB packages/playwright/src/util.ts
|
|
52
52
|
0.2 KB packages/utils/crypto.ts
|
|
@@ -518,7 +518,7 @@ var { calculateSha1: calculateSha12, createGuid } = require("playwright-core/lib
|
|
|
518
518
|
var { SerializedFS } = require("playwright-core/lib/coreBundle").utils;
|
|
519
519
|
var { filteredStackTrace: filteredStackTrace2 } = require("playwright-core/lib/coreBundle").utils;
|
|
520
520
|
var testTraceEntryName = "test.trace";
|
|
521
|
-
var version =
|
|
521
|
+
var version = 9;
|
|
522
522
|
var traceOrdinal = 0;
|
|
523
523
|
var TestTracing = class {
|
|
524
524
|
constructor(testInfo, artifactsDir) {
|
|
@@ -619,11 +619,10 @@ var TestTracing = class {
|
|
|
619
619
|
}
|
|
620
620
|
async stopIfNeeded() {
|
|
621
621
|
this._contextCreatedEvent.testTimeout = this._testInfo.timeout;
|
|
622
|
+
this._contextCreatedEvent.annotations = this._testInfo.annotations.map(({ type, description }) => ({ type, description }));
|
|
622
623
|
if (!this._options)
|
|
623
624
|
return;
|
|
624
|
-
|
|
625
|
-
if (error)
|
|
626
|
-
throw error;
|
|
625
|
+
await this._liveTraceFile?.fs.sync();
|
|
627
626
|
if (this._shouldAbandonTrace()) {
|
|
628
627
|
for (const file of this._temporaryTraceFiles)
|
|
629
628
|
await import_fs2.default.promises.unlink(file).catch(() => {
|
|
@@ -647,7 +646,7 @@ var TestTracing = class {
|
|
|
647
646
|
}
|
|
648
647
|
for (const sourceFile of sourceFiles) {
|
|
649
648
|
await import_fs2.default.promises.readFile(sourceFile, "utf8").then((source) => {
|
|
650
|
-
zipFile.addBuffer(Buffer.from(source), "
|
|
649
|
+
zipFile.addBuffer(Buffer.from(source), "src/" + calculateSha12(sourceFile) + import_path2.default.extname(sourceFile));
|
|
651
650
|
}).catch(() => {
|
|
652
651
|
});
|
|
653
652
|
}
|
|
@@ -664,13 +663,13 @@ var TestTracing = class {
|
|
|
664
663
|
if (content === void 0)
|
|
665
664
|
continue;
|
|
666
665
|
const sha1 = calculateSha12(content);
|
|
667
|
-
attachment.
|
|
666
|
+
attachment.file = "attachments/" + sha1;
|
|
668
667
|
delete attachment.path;
|
|
669
668
|
delete attachment.base64;
|
|
670
669
|
if (sha1s.has(sha1))
|
|
671
670
|
continue;
|
|
672
671
|
sha1s.add(sha1);
|
|
673
|
-
zipFile.addBuffer(content,
|
|
672
|
+
zipFile.addBuffer(content, attachment.file);
|
|
674
673
|
}
|
|
675
674
|
}
|
|
676
675
|
const traceContent = Buffer.from(this._traceEvents.map((e) => JSON.stringify(e)).join("\n"));
|
|
@@ -717,6 +716,7 @@ var TestTracing = class {
|
|
|
717
716
|
class: "Test",
|
|
718
717
|
method: options.category,
|
|
719
718
|
title: options.title,
|
|
719
|
+
subtitle: options.subtitle,
|
|
720
720
|
params: Object.fromEntries(Object.entries(options.params || {}).map(([name, value]) => [name, generatePreview(value)])),
|
|
721
721
|
stack: options.stack,
|
|
722
722
|
group: options.group
|
|
@@ -992,14 +992,13 @@ var TestInfoImpl = class {
|
|
|
992
992
|
if (!parentStep)
|
|
993
993
|
parentStep = this._parentStep();
|
|
994
994
|
}
|
|
995
|
-
const filteredStack = filteredStackTrace3(captureRawStack());
|
|
996
995
|
let boxedStack = parentStep?.boxedStack;
|
|
997
996
|
let location = data.location;
|
|
998
997
|
if (!boxedStack && data.box) {
|
|
999
|
-
boxedStack =
|
|
1000
|
-
location
|
|
998
|
+
boxedStack = filteredStackTrace3(captureRawStack()).slice(1);
|
|
999
|
+
location ??= boxedStack[0];
|
|
1001
1000
|
}
|
|
1002
|
-
location
|
|
1001
|
+
location ??= filteredStackTrace3(captureRawStack())[0];
|
|
1003
1002
|
const step = {
|
|
1004
1003
|
...data,
|
|
1005
1004
|
stepId,
|
|
@@ -1068,9 +1067,13 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1068
1067
|
stepId,
|
|
1069
1068
|
parentStepId: parentStep ? parentStep.stepId : void 0,
|
|
1070
1069
|
title: step.title,
|
|
1070
|
+
subtitle: step.subtitle,
|
|
1071
1071
|
category: step.category,
|
|
1072
|
+
params: toReportedParams(step.params),
|
|
1072
1073
|
wallTime: Date.now(),
|
|
1073
|
-
location: step.location
|
|
1074
|
+
location: step.location,
|
|
1075
|
+
apiName: step.apiName,
|
|
1076
|
+
channelMethod: step.channelMethod
|
|
1074
1077
|
};
|
|
1075
1078
|
this._callbacks.onStepBegin(payload);
|
|
1076
1079
|
}
|
|
@@ -1078,7 +1081,8 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1078
1081
|
this._tracing.appendBeforeActionForStep({
|
|
1079
1082
|
stepId,
|
|
1080
1083
|
parentId: parentStep?.stepId,
|
|
1081
|
-
title: step.
|
|
1084
|
+
title: step.title,
|
|
1085
|
+
subtitle: step.subtitle,
|
|
1082
1086
|
category: step.category,
|
|
1083
1087
|
params: step.params,
|
|
1084
1088
|
stack: step.location ? [step.location] : [],
|
|
@@ -1334,6 +1338,15 @@ var TestAbortError = class extends Error {
|
|
|
1334
1338
|
var StepSkipError = class extends Error {
|
|
1335
1339
|
};
|
|
1336
1340
|
var stepSymbol = /* @__PURE__ */ Symbol("step");
|
|
1341
|
+
function toReportedParams(params) {
|
|
1342
|
+
if (!params)
|
|
1343
|
+
return void 0;
|
|
1344
|
+
try {
|
|
1345
|
+
return JSON.parse(JSON.stringify(params));
|
|
1346
|
+
} catch {
|
|
1347
|
+
return void 0;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1337
1350
|
|
|
1338
1351
|
// packages/playwright/src/worker/workerMain.ts
|
|
1339
1352
|
var colors2 = require("playwright-core/lib/utilsBundle").colors;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# packages/playwright/lib/worker/workerProcessEntry.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 74.3 KB
|
|
3
3
|
|
|
4
4
|
## Inlined (8)
|
|
5
5
|
3.7 KB packages/playwright/src/util.ts
|
|
6
6
|
8.7 KB packages/playwright/src/worker/fixtureRunner.ts
|
|
7
|
-
21.
|
|
8
|
-
11.
|
|
7
|
+
21.4 KB packages/playwright/src/worker/testInfo.ts
|
|
8
|
+
11.9 KB packages/playwright/src/worker/testTracing.ts
|
|
9
9
|
5.4 KB packages/playwright/src/worker/timeoutManager.ts
|
|
10
10
|
0.3 KB packages/playwright/src/worker/util.ts
|
|
11
11
|
21.3 KB packages/playwright/src/worker/workerMain.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoothdeploy/playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0-beta-1791031101000",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,9 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"playwright-core": "npm:@smoothdeploy/playwright-core@1.
|
|
54
|
-
},
|
|
55
|
-
"optionalDependencies": {
|
|
56
|
-
"fsevents": "2.3.2"
|
|
53
|
+
"playwright-core": "npm:@smoothdeploy/playwright-core@1.63.0-beta-1791031101000"
|
|
57
54
|
}
|
|
58
55
|
}
|