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