Skip to content

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

fix: correctly print number of interrupted tests in markdown (#28228)

Yury Semikhatsky34c8516d0974
diff --git a/packages/playwright/src/reporters/markdown.ts b/packages/playwright/src/reporters/markdown.ts
index 52f67a548e..a32d7bda42 100644
--- a/packages/playwright/src/reporters/markdown.ts
+++ b/packages/playwright/src/reporters/markdown.ts
@@ -57,7 +57,7 @@ class MarkdownReporter extends BaseReporter {
}
if (summary.interrupted.length) {
lines.push(`<details>`);
- lines.push(`<summary><b>${summary.flaky.length} interrupted</b></summary>`);
+ lines.push(`<summary><b>${summary.interrupted.length} interrupted</b></summary>`);
this._printTestList(':warning:', summary.interrupted, lines, ' <br/>');
lines.push(`</details>`);
lines.push(``);