@pedropaulovc/playwright 1.59.2-next → 1.59.3-next
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/reporters/base.js +5 -1
- package/package.json +1 -1
package/lib/reporters/base.js
CHANGED
|
@@ -368,10 +368,14 @@ function formatFailure(screen, config, test, index, options) {
|
|
|
368
368
|
resultLines.push(screen.colors.dim(` ${relativePath}`));
|
|
369
369
|
if (attachment.name === "trace") {
|
|
370
370
|
const packageManagerCommand = (0, import_utils.getPackageManagerExecCommand)();
|
|
371
|
-
resultLines.push(screen.colors.dim(` Usage:`));
|
|
371
|
+
resultLines.push(screen.colors.dim(` Usage (GUI):`));
|
|
372
372
|
resultLines.push("");
|
|
373
373
|
resultLines.push(screen.colors.dim(` ${packageManagerCommand} playwright show-trace ${quotePathIfNeeded(relativePath)}`));
|
|
374
374
|
resultLines.push("");
|
|
375
|
+
resultLines.push(screen.colors.dim(` Usage (markdown, LLM friendly):`));
|
|
376
|
+
resultLines.push("");
|
|
377
|
+
resultLines.push(screen.colors.dim(` ${packageManagerCommand} playwright export-trace ${quotePathIfNeeded(relativePath)}`));
|
|
378
|
+
resultLines.push("");
|
|
375
379
|
}
|
|
376
380
|
} else {
|
|
377
381
|
if (attachment.contentType.startsWith("text/") && attachment.body) {
|