Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test(bidi): remove newlines from fixme descriptions in the csv reporter (#37829)

Holger Benl8b1960775613
diff --git a/tests/bidi/csvReporter.ts b/tests/bidi/csvReporter.ts
index 67aa26c855..b84ca9e81d 100644
--- a/tests/bidi/csvReporter.ts
+++ b/tests/bidi/csvReporter.ts
@@ -55,7 +55,7 @@ class CsvReporter implements Reporter {
row.push(test.expectedStatus);
row.push(test.outcome());
if (fixme) {
- row.push('fixme' + (fixme.description ? `: ${fixme.description}` : ''));
+ row.push('fixme' + (fixme.description ? `: ${fixme.description.replace(/\s+/g, ' ')}` : ''));
} else {
const result = test.results.find(r => r.error);
if (result) {