High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
test: pin the jsError origin mask with a single-line inline-origin fixture the multi-line cases leave redundant (PIN-126)
Luigi Agostif67972cd0145
diff --git a/internal/audit/compare_test.go b/internal/audit/compare_test.goindex 76be4504..94f35d26 100644--- a/internal/audit/compare_test.go+++ b/internal/audit/compare_test.go@@ -138,6 +138,16 @@ func TestDiffPageDataUncaughtJSErrors(t *testing.T) {staging: []func(*PageResult){jsError(fmt.Sprintf(referenceError, staging))},wantDrift: false,},+ {+ // A single-line message carries its location inline, so the first-line cut+ // cannot drop the host — only the origin mask can. Without it the same bug,+ // broken identically on live and staging, reads as drift and fails the gate.+ // The multi-line fixtures leave the mask redundant with the cut; this isolates it.+ name: "same inline-origin error on both sides is not a regression",+ live: []func(*PageResult){jsError("Uncaught Error: boom at " + live + "/app.js:3:9")},+ staging: []func(*PageResult){jsError("Uncaught Error: boom at " + staging + "/app.js:3:9")},+ wantDrift: false,+ },{name: "one error swapped for another at the same count",live: []func(*PageResult){jsError("Uncaught: TypeError: a is not a function")},