From 4da84bb48a2e354b631ff720bc67e34650d2b849 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 27 Aug 2026 09:30:18 -0500 Subject: [PATCH] normalize escaped runner e2e markers --- tests/runner-e2e/matchers.ts | 4 ++++ tests/runner-e2e/support.test.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/runner-e2e/matchers.ts b/tests/runner-e2e/matchers.ts index 191fc9e1358..ac345c4c877 100644 --- a/tests/runner-e2e/matchers.ts +++ b/tests/runner-e2e/matchers.ts @@ -40,6 +40,10 @@ export interface MatcherResult { function normalizeMessage(value: string | undefined) { return (value ?? "") .replace(/\r\n/g, "\n") + // Some provider renderers escape underscores in plain-text identifiers + // before persisting Markdown. Treat that presentation-only escape as the + // same visible marker for exact/contains/ordered message assertions. + .replace(/\\_/g, "_") .replace(/[ \t]+/g, " ") .trim(); } diff --git a/tests/runner-e2e/support.test.ts b/tests/runner-e2e/support.test.ts index 51c687d2012..f53b9d536d8 100644 --- a/tests/runner-e2e/support.test.ts +++ b/tests/runner-e2e/support.test.ts @@ -170,7 +170,7 @@ describe("runner E2E matchers", () => { { kind: "runtime_mode", expected: "native" }, ], { - message: " complete PAPERCLIP_E2E_OK_nonce ", + message: " complete PAPERCLIP\\_E2E\\_OK\\_nonce ", issueStatus: "done", runtimeMode: "native", },