playwright
Advanced tools
Comparing version 1.51.0-alpha-2025-01-21 to 1.51.0-alpha-2025-01-22
@@ -110,2 +110,4 @@ "use strict"; | ||
process.stdout.write('\n'); | ||
++this._lastRow; | ||
this._lastColumn = 0; | ||
} | ||
@@ -182,2 +184,3 @@ } | ||
++this._lastRow; | ||
this._lastColumn = 0; | ||
} | ||
@@ -184,0 +187,0 @@ _updateLine(row, text, prefix) { |
@@ -261,3 +261,3 @@ "use strict"; | ||
this._onStepBegin(payload); | ||
this._tracing.appendBeforeActionForStep(stepId, (_parentStep2 = parentStep) === null || _parentStep2 === void 0 ? void 0 : _parentStep2.stepId, data.apiName || data.title, data.params, data.location ? [data.location] : []); | ||
this._tracing.appendBeforeActionForStep(stepId, (_parentStep2 = parentStep) === null || _parentStep2 === void 0 ? void 0 : _parentStep2.stepId, data.category, data.apiName || data.title, data.params, data.location ? [data.location] : []); | ||
return step; | ||
@@ -358,3 +358,3 @@ } | ||
const callId = `attach@${++this._lastStepId}`; | ||
this._tracing.appendBeforeActionForStep(callId, (_this$_findLastStageS = this._findLastStageStep(this._steps)) === null || _this$_findLastStageS === void 0 ? void 0 : _this$_findLastStageS.stepId, `attach "${attachment.name}"`, undefined, []); | ||
this._tracing.appendBeforeActionForStep(callId, (_this$_findLastStageS = this._findLastStageStep(this._steps)) === null || _this$_findLastStageS === void 0 ? void 0 : _this$_findLastStageS.stepId, 'attach', `attach "${attachment.name}"`, undefined, []); | ||
this._tracing.appendAfterActionForStep(callId, undefined, [attachment]); | ||
@@ -361,0 +361,0 @@ } |
@@ -215,3 +215,3 @@ "use strict"; | ||
} | ||
appendBeforeActionForStep(callId, parentId, apiName, params, stack) { | ||
appendBeforeActionForStep(callId, parentId, category, apiName, params, stack) { | ||
this._appendTraceEvent({ | ||
@@ -223,3 +223,3 @@ type: 'before', | ||
class: 'Test', | ||
method: 'step', | ||
method: category, | ||
apiName, | ||
@@ -226,0 +226,0 @@ params: Object.fromEntries(Object.entries(params || {}).map(([name, value]) => [name, generatePreview(value)])), |
@@ -74,13 +74,15 @@ "use strict"; | ||
process.on('uncaughtException', error => this.unhandledError(error)); | ||
process.stdout.write = chunk => { | ||
process.stdout.write = (chunk, cb) => { | ||
var _this$_currentTest; | ||
this.dispatchEvent('stdOut', (0, _ipc.stdioChunkToParams)(chunk)); | ||
(_this$_currentTest = this._currentTest) === null || _this$_currentTest === void 0 || _this$_currentTest._tracing.appendStdioToTrace('stdout', chunk); | ||
if (typeof cb === 'function') process.nextTick(cb); | ||
return true; | ||
}; | ||
if (!process.env.PW_RUNNER_DEBUG) { | ||
process.stderr.write = chunk => { | ||
process.stderr.write = (chunk, cb) => { | ||
var _this$_currentTest2; | ||
this.dispatchEvent('stdErr', (0, _ipc.stdioChunkToParams)(chunk)); | ||
(_this$_currentTest2 = this._currentTest) === null || _this$_currentTest2 === void 0 || _this$_currentTest2._tracing.appendStdioToTrace('stderr', chunk); | ||
if (typeof cb === 'function') process.nextTick(cb); | ||
return true; | ||
@@ -87,0 +89,0 @@ }; |
{ | ||
"name": "playwright", | ||
"version": "1.51.0-alpha-2025-01-21", | ||
"version": "1.51.0-alpha-2025-01-22", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -59,3 +59,3 @@ "repository": { | ||
"dependencies": { | ||
"playwright-core": "1.51.0-alpha-2025-01-21" | ||
"playwright-core": "1.51.0-alpha-2025-01-22" | ||
}, | ||
@@ -62,0 +62,0 @@ "optionalDependencies": { |
3173552
36252
+ Addedplaywright-core@1.51.0-alpha-2025-01-22(transitive)
- Removedplaywright-core@1.51.0-alpha-2025-01-21(transitive)