playwright 1.62.1 → 1.65.0
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/README.md +4 -4
- package/lib/agents/playwright-test-generator.agent.md +1 -1
- package/lib/cli/testActions.js +9 -6
- package/lib/common/index.js +207 -148
- package/lib/common/index.js.txt +13 -14
- package/lib/index.js +51 -30
- package/lib/matchers/expect.js +117 -81
- package/lib/matchers/expect.js.LICENSE +3 -3
- package/lib/matchers/expect.js.txt +8 -8
- package/lib/mcp/test/browserBackend.js +12 -2
- package/lib/mcp/test/testContext.js +2 -8
- package/lib/program.js +4 -4
- package/lib/runner/index.js +1151 -572
- package/lib/runner/index.js.txt +32 -29
- package/lib/transform/babelBundle.js +1217 -982
- package/lib/transform/babelBundle.js.LICENSE +15 -15
- package/lib/transform/babelBundle.js.txt +14 -11
- package/lib/transform/esmLoader.js +375 -187
- package/lib/transform/esmLoader.js.LICENSE +3 -3
- package/lib/transform/esmLoader.js.txt +9 -8
- package/lib/worker/workerProcessEntry.js +43 -41
- package/lib/worker/workerProcessEntry.js.txt +4 -4
- package/package.json +2 -10
- package/types/test.d.ts +755 -88
- package/types/testReporter.d.ts +74 -3
- package/jsx-runtime.js +0 -42
- package/jsx-runtime.mjs +0 -21
|
@@ -5,7 +5,7 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
|
5
5
|
The following npm packages are inlined into this bundle.
|
|
6
6
|
|
|
7
7
|
- balanced-match@4.0.4 (https://github.com/juliangruber/balanced-match)
|
|
8
|
-
- brace-expansion@5.0.
|
|
8
|
+
- brace-expansion@5.0.12 (https://github.com/juliangruber/brace-expansion)
|
|
9
9
|
- buffer-from@1.1.2 (https://github.com/LinusU/buffer-from)
|
|
10
10
|
- debug@4.4.3 (https://github.com/debug-js/debug)
|
|
11
11
|
- has-flag@4.0.0 (https://github.com/sindresorhus/has-flag)
|
|
@@ -45,7 +45,7 @@ SOFTWARE.
|
|
|
45
45
|
=========================================
|
|
46
46
|
END OF balanced-match@4.0.4 NOTICES AND INFORMATION
|
|
47
47
|
|
|
48
|
-
%% brace-expansion@5.0.
|
|
48
|
+
%% brace-expansion@5.0.12 NOTICES AND INFORMATION BEGIN HERE
|
|
49
49
|
=========================================
|
|
50
50
|
MIT License
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
71
71
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
72
72
|
SOFTWARE.
|
|
73
73
|
=========================================
|
|
74
|
-
END OF brace-expansion@5.0.
|
|
74
|
+
END OF brace-expansion@5.0.12 NOTICES AND INFORMATION
|
|
75
75
|
|
|
76
76
|
%% buffer-from@1.1.2 NOTICES AND INFORMATION BEGIN HERE
|
|
77
77
|
=========================================
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# packages/playwright/lib/transform/esmLoader.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 289.8 KB
|
|
3
3
|
|
|
4
|
-
## Inlined (
|
|
4
|
+
## Inlined (52)
|
|
5
5
|
1.3 KB node_modules/balanced-match/dist/esm/index.js
|
|
6
|
-
|
|
6
|
+
6.7 KB node_modules/brace-expansion/dist/esm/index.js
|
|
7
7
|
1.8 KB node_modules/buffer-from/index.js
|
|
8
8
|
4.6 KB node_modules/debug/src/browser.js
|
|
9
9
|
5.8 KB node_modules/debug/src/common.js
|
|
@@ -39,15 +39,16 @@
|
|
|
39
39
|
8.6 KB node_modules/source-map/lib/util.js
|
|
40
40
|
0.3 KB node_modules/source-map/source-map.js
|
|
41
41
|
3.1 KB node_modules/supports-color/index.js
|
|
42
|
+
1.0 KB packages/isomorphic/multimap.ts
|
|
42
43
|
0.1 KB packages/isomorphic/rtti.ts
|
|
43
44
|
0.2 KB packages/isomorphic/stringUtils.ts
|
|
44
|
-
6.
|
|
45
|
-
3.
|
|
46
|
-
1.
|
|
45
|
+
6.8 KB packages/playwright/src/transform/compilationCache.ts
|
|
46
|
+
3.3 KB packages/playwright/src/transform/esmLoader.ts
|
|
47
|
+
1.8 KB packages/playwright/src/transform/esmLoaderSync.ts
|
|
47
48
|
1.1 KB packages/playwright/src/transform/pirates.ts
|
|
48
49
|
1.1 KB packages/playwright/src/transform/portTransport.ts
|
|
49
|
-
|
|
50
|
-
2
|
|
50
|
+
13.1 KB packages/playwright/src/transform/transform.ts
|
|
51
|
+
4.2 KB packages/playwright/src/transform/tsconfig-loader.ts
|
|
51
52
|
4.7 KB packages/playwright/src/util.ts
|
|
52
53
|
0.2 KB packages/utils/crypto.ts
|
|
53
54
|
0.1 KB packages/utils/debug.ts
|
|
@@ -124,7 +124,7 @@ var Fixture = class {
|
|
|
124
124
|
const isUserFixture = this.registration.location && filterStackFile(this.registration.location.file);
|
|
125
125
|
const title = this.registration.customTitle || this.registration.name;
|
|
126
126
|
const location = isUserFixture ? this.registration.location : void 0;
|
|
127
|
-
this._stepInfo = { title: `Fixture ${escapeWithQuotes(title, '"')}`, category: "fixture", location };
|
|
127
|
+
this._stepInfo = { title: `Fixture ${escapeWithQuotes(title, '"')}`, category: "fixture", stack: location ? [location] : void 0 };
|
|
128
128
|
if (this.registration.box === "self")
|
|
129
129
|
this._stepInfo = void 0;
|
|
130
130
|
else if (this.registration.box)
|
|
@@ -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 = 10;
|
|
522
522
|
var traceOrdinal = 0;
|
|
523
523
|
var TestTracing = class {
|
|
524
524
|
constructor(testInfo, artifactsDir) {
|
|
@@ -558,7 +558,7 @@ var TestTracing = class {
|
|
|
558
558
|
return false;
|
|
559
559
|
}
|
|
560
560
|
async startIfNeeded(value) {
|
|
561
|
-
const defaultTraceOptions = { screenshots: true, snapshots: true, sources: true, attachments: true, live: false, mode: "off" };
|
|
561
|
+
const defaultTraceOptions = { screenshots: true, snapshots: true, _coverage: false, sources: true, attachments: true, live: false, mode: "off" };
|
|
562
562
|
if (!value) {
|
|
563
563
|
this._options = defaultTraceOptions;
|
|
564
564
|
} else if (typeof value === "string") {
|
|
@@ -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"));
|
|
@@ -711,12 +710,12 @@ var TestTracing = class {
|
|
|
711
710
|
this._appendTraceEvent({
|
|
712
711
|
type: "before",
|
|
713
712
|
callId: options.stepId,
|
|
714
|
-
stepId: options.stepId,
|
|
715
713
|
parentId: options.parentId,
|
|
716
714
|
startTime: monotonicTime2(),
|
|
717
715
|
class: "Test",
|
|
718
716
|
method: options.category,
|
|
719
717
|
title: options.title,
|
|
718
|
+
subtitle: options.subtitle,
|
|
720
719
|
params: Object.fromEntries(Object.entries(options.params || {}).map(([name, value]) => [name, generatePreview(value)])),
|
|
721
720
|
stack: options.stack,
|
|
722
721
|
group: options.group
|
|
@@ -839,7 +838,7 @@ var { ManualPromise: ManualPromise4 } = require("playwright-core/lib/coreBundle"
|
|
|
839
838
|
var { captureRawStack, stringifyStackFrames: stringifyStackFrames2, filteredStackTrace: filteredStackTrace3 } = require("playwright-core/lib/coreBundle").utils;
|
|
840
839
|
var { escapeWithQuotes: escapeWithQuotes2 } = require("playwright-core/lib/coreBundle").iso;
|
|
841
840
|
var { monotonicTime: monotonicTime3 } = require("playwright-core/lib/coreBundle").iso;
|
|
842
|
-
var {
|
|
841
|
+
var { createCallIdGenerator } = require("playwright-core/lib/coreBundle").iso;
|
|
843
842
|
var { sanitizeForFilePath: sanitizeForFilePath2, trimLongString } = require("playwright-core/lib/coreBundle").utils;
|
|
844
843
|
var { currentZone } = require("playwright-core/lib/coreBundle").utils;
|
|
845
844
|
var emtpyTestInfoCallbacks = {
|
|
@@ -849,14 +848,15 @@ var emtpyTestInfoCallbacks = {
|
|
|
849
848
|
},
|
|
850
849
|
onAttach: () => {
|
|
851
850
|
},
|
|
852
|
-
onTestPaused: () =>
|
|
851
|
+
onTestPaused: () => {
|
|
852
|
+
}
|
|
853
853
|
};
|
|
854
|
+
var nextStepId = createCallIdGenerator();
|
|
854
855
|
var TestInfoImpl = class {
|
|
855
856
|
constructor(configInternal, projectInternal, workerParams, test, retry, callbacks) {
|
|
856
857
|
this._snapshotNames = { lastAnonymousSnapshotIndex: 0, lastNamedSnapshotIndex: {} };
|
|
857
858
|
this._ariaSnapshotNames = { lastAnonymousSnapshotIndex: 0, lastNamedSnapshotIndex: {} };
|
|
858
859
|
this._interruptedPromise = new ManualPromise4();
|
|
859
|
-
this._lastStepId = 0;
|
|
860
860
|
this._steps = [];
|
|
861
861
|
this._stepMap = /* @__PURE__ */ new Map();
|
|
862
862
|
this._onDidFinishTestFunctionCallbacks = /* @__PURE__ */ new Set();
|
|
@@ -960,7 +960,7 @@ var TestInfoImpl = class {
|
|
|
960
960
|
}
|
|
961
961
|
if (modifierArgs.length >= 1 && !modifierArgs[0])
|
|
962
962
|
return;
|
|
963
|
-
const description = modifierArgs[1];
|
|
963
|
+
const description = modifierArgs.length === 1 && typeof modifierArgs[0] === "string" ? modifierArgs[0] : modifierArgs[1];
|
|
964
964
|
this.annotations.push({ type, description, location });
|
|
965
965
|
if (type === "slow") {
|
|
966
966
|
this._timeoutManager.slow();
|
|
@@ -985,27 +985,26 @@ var TestInfoImpl = class {
|
|
|
985
985
|
return currentZone().data("stepZone") ?? this._findLastPredefinedStep(this._steps);
|
|
986
986
|
}
|
|
987
987
|
_addStep(data, parentStep) {
|
|
988
|
-
const stepId =
|
|
988
|
+
const stepId = nextStepId();
|
|
989
989
|
if (data.category === "hook" || data.category === "fixture") {
|
|
990
990
|
parentStep = this._findLastPredefinedStep(this._steps);
|
|
991
991
|
} else {
|
|
992
992
|
if (!parentStep)
|
|
993
993
|
parentStep = this._parentStep();
|
|
994
994
|
}
|
|
995
|
-
const filteredStack = filteredStackTrace3(captureRawStack());
|
|
996
995
|
let boxedStack = parentStep?.boxedStack;
|
|
997
|
-
let
|
|
996
|
+
let stack = data.stack;
|
|
998
997
|
if (!boxedStack && data.box) {
|
|
999
|
-
boxedStack =
|
|
1000
|
-
|
|
998
|
+
boxedStack = filteredStackTrace3(captureRawStack()).slice(1);
|
|
999
|
+
stack ??= boxedStack;
|
|
1001
1000
|
}
|
|
1002
|
-
|
|
1001
|
+
stack ??= filteredStackTrace3(captureRawStack());
|
|
1003
1002
|
const step = {
|
|
1004
1003
|
...data,
|
|
1005
1004
|
stepId,
|
|
1006
1005
|
group: parentStep?.group ?? data.group,
|
|
1007
1006
|
boxedStack,
|
|
1008
|
-
|
|
1007
|
+
stack,
|
|
1009
1008
|
steps: [],
|
|
1010
1009
|
attachmentIndices: [],
|
|
1011
1010
|
info: new TestStepInfoImpl(this, stepId, data.title, parentStep?.info),
|
|
@@ -1068,9 +1067,11 @@ ${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.
|
|
1074
|
+
location: step.stack[0]
|
|
1074
1075
|
};
|
|
1075
1076
|
this._callbacks.onStepBegin(payload);
|
|
1076
1077
|
}
|
|
@@ -1078,10 +1079,11 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1078
1079
|
this._tracing.appendBeforeActionForStep({
|
|
1079
1080
|
stepId,
|
|
1080
1081
|
parentId: parentStep?.stepId,
|
|
1081
|
-
title: step.
|
|
1082
|
+
title: step.title,
|
|
1083
|
+
subtitle: step.subtitle,
|
|
1082
1084
|
category: step.category,
|
|
1083
1085
|
params: step.params,
|
|
1084
|
-
stack: step.
|
|
1086
|
+
stack: step.stack,
|
|
1085
1087
|
group: step.group
|
|
1086
1088
|
});
|
|
1087
1089
|
}
|
|
@@ -1161,10 +1163,8 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1161
1163
|
async _didFinishTestFunction() {
|
|
1162
1164
|
const shouldPause = this._workerParams.pauseAtEnd && !this._isFailure() || this._workerParams.pauseOnError && this._isFailure();
|
|
1163
1165
|
if (shouldPause) {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
this._interruptedPromise
|
|
1167
|
-
]);
|
|
1166
|
+
this._callbacks.onTestPaused({ testId: this.testId, errors: this._isFailure() ? this.errors.map(import_common2.ipc.toTestInfoErrorPayload) : [] });
|
|
1167
|
+
await this._interruptedPromise;
|
|
1168
1168
|
}
|
|
1169
1169
|
for (const cb of this._onDidFinishTestFunctionCallbacks)
|
|
1170
1170
|
await cb();
|
|
@@ -1189,7 +1189,7 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1189
1189
|
if (step) {
|
|
1190
1190
|
step.attachmentIndices.push(index);
|
|
1191
1191
|
} else {
|
|
1192
|
-
const stepId2 =
|
|
1192
|
+
const stepId2 = nextStepId();
|
|
1193
1193
|
this._tracing.appendBeforeActionForStep({ stepId: stepId2, title: `Attach ${escapeWithQuotes2(attachment.name, '"')}`, category: "test.attach", stack: [] });
|
|
1194
1194
|
this._tracing.appendAfterActionForStep(stepId2, void 0, [attachment]);
|
|
1195
1195
|
}
|
|
@@ -1222,7 +1222,7 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1222
1222
|
}
|
|
1223
1223
|
_resolveSnapshotPaths(kind, name, updateSnapshotIndex, anonymousExtension) {
|
|
1224
1224
|
const snapshotNames = kind === "aria" ? this._ariaSnapshotNames : this._snapshotNames;
|
|
1225
|
-
const defaultExtensions = { "aria": ".aria.yml", "screenshot": ".png", "snapshot": ".txt" };
|
|
1225
|
+
const defaultExtensions = { "aria": ".aria.yml", "screenshot": "." + (this._projectInternal.expect?.toHaveScreenshot?.type ?? "png"), "snapshot": ".txt" };
|
|
1226
1226
|
const ariaAwareExtname = (filePath) => kind === "aria" && filePath.endsWith(".aria.yml") ? ".aria.yml" : import_path3.default.extname(filePath);
|
|
1227
1227
|
let subPath;
|
|
1228
1228
|
let ext;
|
|
@@ -1334,6 +1334,15 @@ var TestAbortError = class extends Error {
|
|
|
1334
1334
|
var StepSkipError = class extends Error {
|
|
1335
1335
|
};
|
|
1336
1336
|
var stepSymbol = /* @__PURE__ */ Symbol("step");
|
|
1337
|
+
function toReportedParams(params) {
|
|
1338
|
+
if (!params)
|
|
1339
|
+
return void 0;
|
|
1340
|
+
try {
|
|
1341
|
+
return JSON.parse(JSON.stringify(params));
|
|
1342
|
+
} catch {
|
|
1343
|
+
return void 0;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1337
1346
|
|
|
1338
1347
|
// packages/playwright/src/worker/workerMain.ts
|
|
1339
1348
|
var colors2 = require("playwright-core/lib/utilsBundle").colors;
|
|
@@ -1540,19 +1549,12 @@ var WorkerMain = class extends import_common3.ProcessRunner {
|
|
|
1540
1549
|
return { response: {}, error: import_common3.ipc.toTestInfoErrorPayload(testInfoError(error)) };
|
|
1541
1550
|
}
|
|
1542
1551
|
}
|
|
1543
|
-
resume(payload) {
|
|
1544
|
-
this._resumePromise?.resolve(payload);
|
|
1545
|
-
}
|
|
1546
1552
|
async _runTest(test, retry, nextTest) {
|
|
1547
1553
|
const testInfo = new TestInfoImpl(this._config, this._project, this._params, test, retry, {
|
|
1548
1554
|
onStepBegin: (payload) => this.dispatchEvent("stepBegin", payload),
|
|
1549
1555
|
onStepEnd: (payload) => this.dispatchEvent("stepEnd", payload),
|
|
1550
1556
|
onAttach: (payload) => this.dispatchEvent("attach", payload),
|
|
1551
|
-
onTestPaused: (payload) =>
|
|
1552
|
-
this._resumePromise = new ManualPromise5();
|
|
1553
|
-
this.dispatchEvent("testPaused", payload);
|
|
1554
|
-
return this._resumePromise;
|
|
1555
|
-
}
|
|
1557
|
+
onTestPaused: (payload) => this.dispatchEvent("testPaused", payload)
|
|
1556
1558
|
});
|
|
1557
1559
|
const processAnnotation = (annotation) => {
|
|
1558
1560
|
testInfo.annotations.push(annotation);
|
|
@@ -1718,7 +1720,7 @@ var WorkerMain = class extends import_common3.ProcessRunner {
|
|
|
1718
1720
|
testInfo.duration = testInfo._timeoutManager.defaultSlot().elapsed + afterHooksSlot.elapsed | 0;
|
|
1719
1721
|
this._currentTest = null;
|
|
1720
1722
|
globals.setCurrentTestInfo(null);
|
|
1721
|
-
(0, import_expect.setExpectConfig)({ testInfo: null, filteredStackTrace: filteredStackTrace4, ignoreSnapshots: false, updateSnapshots: "
|
|
1723
|
+
(0, import_expect.setExpectConfig)({ testInfo: null, filteredStackTrace: filteredStackTrace4, ignoreSnapshots: false, updateSnapshots: "default" });
|
|
1722
1724
|
this.dispatchEvent("testEnd", buildTestEndPayload(testInfo));
|
|
1723
1725
|
const preserveOutput = this._config.config.preserveOutput === "always" || this._config.config.preserveOutput === "failures-only" && testInfo._isFailure();
|
|
1724
1726
|
if (!preserveOutput)
|
|
@@ -1756,7 +1758,7 @@ var WorkerMain = class extends import_common3.ProcessRunner {
|
|
|
1756
1758
|
let firstError;
|
|
1757
1759
|
for (const hook of this._collectHooksAndModifiers(suite, type, testInfo)) {
|
|
1758
1760
|
try {
|
|
1759
|
-
await testInfo._runAsStep({ title: hook.title, category: "hook",
|
|
1761
|
+
await testInfo._runAsStep({ title: hook.title, category: "hook", stack: [hook.location] }, async () => {
|
|
1760
1762
|
const timeSlot = { timeout: this._project.project.timeout, elapsed: 0 };
|
|
1761
1763
|
const runnable = { type: hook.type, slot: timeSlot, location: hook.location };
|
|
1762
1764
|
const existingAnnotations = new Set(testInfo.annotations);
|
|
@@ -1797,7 +1799,7 @@ var WorkerMain = class extends import_common3.ProcessRunner {
|
|
|
1797
1799
|
continue;
|
|
1798
1800
|
}
|
|
1799
1801
|
try {
|
|
1800
|
-
await testInfo._runAsStep({ title: hook.title, category: "hook",
|
|
1802
|
+
await testInfo._runAsStep({ title: hook.title, category: "hook", stack: [hook.location] }, async () => {
|
|
1801
1803
|
await this._fixtureRunner.resolveParametersAndRunFunction(hook.fn, testInfo, "test", runnable);
|
|
1802
1804
|
});
|
|
1803
1805
|
} catch (error) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# packages/playwright/lib/worker/workerProcessEntry.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 74.0 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.3 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
|
-
21.
|
|
11
|
+
21.1 KB packages/playwright/src/worker/workerMain.ts
|
|
12
12
|
0.1 KB packages/playwright/src/worker/workerProcessEntry.ts
|
|
13
13
|
|
|
14
14
|
## External (5)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.65.0",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
"./lib/program": "./lib/program.js",
|
|
24
24
|
"./lib/runner": "./lib/runner/index.js",
|
|
25
25
|
"./lib/transform/babelBundle": "./lib/transform/babelBundle.js",
|
|
26
|
-
"./jsx-runtime": {
|
|
27
|
-
"import": "./jsx-runtime.mjs",
|
|
28
|
-
"require": "./jsx-runtime.js",
|
|
29
|
-
"default": "./jsx-runtime.js"
|
|
30
|
-
},
|
|
31
26
|
"./lib/util": "./lib/util.js",
|
|
32
27
|
"./types/test": {
|
|
33
28
|
"types": "./types/test.d.ts"
|
|
@@ -50,9 +45,6 @@
|
|
|
50
45
|
},
|
|
51
46
|
"license": "Apache-2.0",
|
|
52
47
|
"dependencies": {
|
|
53
|
-
"playwright-core": "1.
|
|
54
|
-
},
|
|
55
|
-
"optionalDependencies": {
|
|
56
|
-
"fsevents": "2.3.2"
|
|
48
|
+
"playwright-core": "1.65.0"
|
|
57
49
|
}
|
|
58
50
|
}
|