Skip to content

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

fix(testrunner): fix reporting focused tests

Andrey Lushnikov704fe6dc739d
diff --git a/utils/testrunner/Reporter.js b/utils/testrunner/Reporter.js
index ba600991ce..d62d6ced6f 100644
--- a/utils/testrunner/Reporter.js
+++ b/utils/testrunner/Reporter.js
@@ -51,7 +51,7 @@ class Reporter {
console.log('');
const focusedSuites = this._runner.focusedSuites();
const focusedTests = this._runner.focusedTests();
- if (focusedSuites.length) {
+ if (focusedSuites.length || focusedTests.length) {
console.log('Focused Suites and Tests:');
for (let i = 0; i < focusedSuites.length; ++i)
console.log(` ${i + 1}) ${focusedSuites[i].fullName} (${formatLocation(focusedSuites[i].location)})`);