Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

playwright

Package Overview
Dependencies
Maintainers
0
Versions
4744
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright - npm Package Compare versions

Comparing version 1.50.0-alpha-2025-01-15 to 1.50.0-alpha-2025-01-16

1

lib/common/esmLoaderHost.js

@@ -47,3 +47,2 @@ "use strict";

require('node:module').register(_url.default.pathToFileURL(require.resolve('../transform/esmLoader')), {
parentURL: _url.default.pathToFileURL(__filename),
data: {

@@ -50,0 +49,0 @@ port: port2

45

lib/common/testType.js

@@ -61,4 +61,3 @@ "use strict";

test.step = this._step.bind(this, 'pass');
test.step.fail = this._step.bind(this, 'fail');
test.step.fixme = this._step.bind(this, 'fixme');
test.step.skip = this._step.bind(this, 'skip');
test.use = (0, _transform.wrapFunctionWithLocation)(this._use.bind(this));

@@ -232,3 +231,12 @@ test.extend = (0, _transform.wrapFunctionWithLocation)(this._extend.bind(this));

if (!testInfo) throw new Error(`test.step() can only be called from a test`);
if (expectation === 'fixme') return undefined;
if (expectation === 'skip') {
const step = testInfo._addStep({
category: 'test.step.skip',
title,
location: options.location,
box: options.box
});
step.complete({});
return undefined;
}
const step = testInfo._addStep({

@@ -241,12 +249,8 @@ category: 'test.step',

return await _utils.zones.run('stepZone', step, async () => {
var _result;
let result;
let error;
try {
result = await (0, _utils.raceAgainstDeadline)(async () => body(), options.timeout ? (0, _utils.monotonicTime)() + options.timeout : 0);
} catch (e) {
error = e;
}
if ((_result = result) !== null && _result !== void 0 && _result.timedOut) {
const error = new _playwrightCore.errors.TimeoutError(`Step timeout ${options.timeout}ms exceeded.`);
const result = await (0, _utils.raceAgainstDeadline)(async () => body(), options.timeout ? (0, _utils.monotonicTime)() + options.timeout : 0);
if (result.timedOut) throw new _playwrightCore.errors.TimeoutError(`Step timeout ${options.timeout}ms exceeded.`);
step.complete({});
return result.result;
} catch (error) {
step.complete({

@@ -257,19 +261,2 @@ error

}
const expectedToFail = expectation === 'fail';
if (error) {
step.complete({
error
});
if (expectedToFail) return undefined;
throw error;
}
if (expectedToFail) {
error = new Error(`Step is expected to fail, but passed`);
step.complete({
error
});
throw error;
}
step.complete({});
return result.result;
});

@@ -276,0 +263,0 @@ }

@@ -503,2 +503,3 @@ "use strict";

} = dedupedStep;
const skipped = dedupedStep.step.category === 'test.step.skip';
const testStep = {

@@ -516,3 +517,4 @@ title: step.title,

error: (_step$error = step.error) === null || _step$error === void 0 ? void 0 : _step$error.message,
count
count,
skipped
};

@@ -519,0 +521,0 @@ if (step.location) this._stepsInFile.set(step.location.file, testStep);

{
"name": "playwright",
"version": "1.50.0-alpha-2025-01-15",
"version": "1.50.0-alpha-2025-01-16",
"description": "A high-level API to automate web browsers",

@@ -59,3 +59,3 @@ "repository": {

"dependencies": {
"playwright-core": "1.50.0-alpha-2025-01-15"
"playwright-core": "1.50.0-alpha-2025-01-16"
},

@@ -62,0 +62,0 @@ "optionalDependencies": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc