fix(browser): contain scenario pages and preserve inputs

This commit is contained in:
morluto
2026-07-24 14:14:15 +00:00
parent f0069cbee4
commit 24b3dc41df
7 changed files with 191 additions and 23 deletions
+4 -2
View File
@@ -165,9 +165,11 @@ export class PlaywrightScenarioEvents {
page.on("pageerror", (error) =>
this.push({
kind: "page-error",
message: this.secrets.redact(error.message),
message: this.secrets.redact(error.message).slice(0, 65_536),
stack:
error.stack === undefined ? null : this.secrets.redact(error.stack),
error.stack === undefined
? null
: this.secrets.redact(error.stack).slice(0, 262_144),
}),
);
if (this.enabled.has("network")) {