Skip to content

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

Combine file name and test name to a single identifier for CSV export of BiDi results (#34172)

Henrik Skupincab2bc4e2a1e
diff --git a/tests/bidi/csvReporter.ts b/tests/bidi/csvReporter.ts
index 4986a736c3..1da6b6b697 100644
--- a/tests/bidi/csvReporter.ts
+++ b/tests/bidi/csvReporter.ts
@@ -41,15 +41,14 @@ class CsvReporter implements Reporter {
}
onEnd(result: FullResult) {
- const rows = [['File Name', 'Test Name', 'Expected Status', 'Status', 'Error Message']];
+ const rows = [['Test Name', 'Expected Status', 'Status', 'Error Message']];
for (const project of this._suite.suites) {
for (const file of project.suites) {
for (const test of file.allTests()) {
if (test.ok())
continue;
const row = [];
- row.push(file.title);
- row.push(csvEscape(test.title));
+ row.push(csvEscape(`${file.title} :: ${test.title}`));
row.push(test.expectedStatus);
row.push(test.outcome());
const result = test.results.find(r => r.error);