playwright-core
Advanced tools
Comparing version 1.49.0-alpha-2024-10-25 to 1.49.0-alpha-2024-10-26
@@ -509,7 +509,8 @@ "use strict"; | ||
let errorMessage = e.message; | ||
if (e instanceof _errors.TimeoutError && (_intermediateResult = intermediateResult) !== null && _intermediateResult !== void 0 && _intermediateResult.previous) errorMessage = `Failed to take two consecutive stable screenshots. ${e.message}`; | ||
if (e instanceof _errors.TimeoutError && (_intermediateResult = intermediateResult) !== null && _intermediateResult !== void 0 && _intermediateResult.previous) errorMessage = `Failed to take two consecutive stable screenshots.`; | ||
return { | ||
log: e.message ? [...metadata.log, e.message] : metadata.log, | ||
...intermediateResult, | ||
errorMessage | ||
errorMessage, | ||
timedOut: e instanceof _errors.TimeoutError | ||
}; | ||
@@ -516,0 +517,0 @@ }); |
@@ -97,8 +97,3 @@ "use strict"; | ||
for (const reporter of options.reporter || []) params.append('reporter', reporter); | ||
let baseUrl = ''; | ||
if (process.env.PW_HMR === '1') { | ||
params.set('testServerPort', '' + server.port()); | ||
baseUrl = 'http://localhost:44223'; // port is hardcoded in build.js | ||
} | ||
const urlPath = `${baseUrl}/trace/${options.webApp || 'index.html'}?${params.toString()}`; | ||
const urlPath = `./trace/${options.webApp || 'index.html'}?${params.toString()}`; | ||
server.routePath('/', (_, response) => { | ||
@@ -105,0 +100,0 @@ response.statusCode = 302; |
@@ -28,2 +28,3 @@ "use strict"; | ||
} | ||
const kDefaultTimeout = 5_000; | ||
function traceParamsForAction(actionInContext) { | ||
@@ -142,3 +143,4 @@ const { | ||
expression: 'to.be.checked', | ||
isNot: !action.checked | ||
isNot: !action.checked, | ||
timeout: kDefaultTimeout | ||
}; | ||
@@ -156,3 +158,4 @@ return { | ||
expectedText: [], | ||
isNot: false | ||
isNot: false, | ||
timeout: kDefaultTimeout | ||
}; | ||
@@ -170,3 +173,4 @@ return { | ||
expectedValue: undefined, | ||
isNot: false | ||
isNot: false, | ||
timeout: kDefaultTimeout | ||
}; | ||
@@ -183,3 +187,4 @@ return { | ||
expression: 'to.be.visible', | ||
isNot: false | ||
isNot: false, | ||
timeout: kDefaultTimeout | ||
}; | ||
@@ -197,3 +202,4 @@ return { | ||
expectedText: [], | ||
isNot: false | ||
isNot: false, | ||
timeout: kDefaultTimeout | ||
}; | ||
@@ -200,0 +206,0 @@ return { |
@@ -54,7 +54,4 @@ "use strict"; | ||
}); | ||
const nodeInternals = StackUtils.nodeInternals(); | ||
const nodeMajorVersion = +process.versions.node.split('.')[0]; | ||
function parseStackTraceLine(line) { | ||
var _frame$file, _frame$file2; | ||
if (!process.env.PWDEBUGIMPL && nodeMajorVersion < 16 && nodeInternals.some(internal => internal.test(line))) return null; | ||
const frame = stackUtils.parseLine(line); | ||
@@ -61,0 +58,0 @@ if (!frame) return null; |
{ | ||
"name": "playwright-core", | ||
"version": "1.49.0-alpha-2024-10-25", | ||
"version": "1.49.0-alpha-2024-10-26", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
7818014
187