chore(bidi): use full test title in CSV expectations (#34496)
This commit is contained in:
parent
52580d640d
commit
8d716b28a1
|
@ -8,6 +8,7 @@ on:
|
|||
paths:
|
||||
- .github/workflows/tests_bidi.yml
|
||||
- packages/playwright-core/src/server/bidi/**
|
||||
- tests/bidi/**
|
||||
schedule:
|
||||
# Run every day at midnight
|
||||
- cron: '0 0 * * *'
|
||||
|
|
|
@ -50,7 +50,8 @@ class CsvReporter implements Reporter {
|
|||
if (test.ok() && !fixme)
|
||||
continue;
|
||||
const row = [];
|
||||
row.push(csvEscape(`${file.title} :: ${test.title}`));
|
||||
const [, , , ...titles] = test.titlePath();
|
||||
row.push(csvEscape(`${file.title} :: ${titles.join(' › ')}`));
|
||||
row.push(test.expectedStatus);
|
||||
row.push(test.outcome());
|
||||
if (fixme) {
|
||||
|
@ -67,7 +68,7 @@ class CsvReporter implements Reporter {
|
|||
const csv = rows.map(r => r.join(',')).join('\n');
|
||||
const reportFile = path.resolve(this._options.configDir, this._options.outputFile || 'test-results.csv');
|
||||
this._pendingWrite = (async () => {
|
||||
await fs.mkdirSync(path.dirname(reportFile), { recursive: true });
|
||||
await fs.promises.mkdir(path.dirname(reportFile), { recursive: true });
|
||||
await fs.promises.writeFile(reportFile, csv);
|
||||
})();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue