Skip to content

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

chore(bidi): consider dymamic annations for .csv report (#35560)

Yury Semikhatskyc84bb713a6ba
diff --git a/tests/bidi/csvReporter.ts b/tests/bidi/csvReporter.ts
index 0c5b94330b..d142296222 100644
--- a/tests/bidi/csvReporter.ts
+++ b/tests/bidi/csvReporter.ts
@@ -46,7 +46,8 @@ class CsvReporter implements Reporter {
for (const file of project.suites) {
for (const test of file.allTests()) {
// Report fixme tests as failing.
- const fixme = test.annotations.find(a => a.type === 'fixme');
+ const annotations = [...test.annotations, ...test.results.map(r => r.annotations).flat()];
+ const fixme = annotations.find(a => a.type === 'fixme');
if (test.ok() && !fixme)
continue;
const row = [];