From a34f3b9270494fd58fe359706f9fa41039bab437 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 16 Jul 2024 16:13:24 +0200 Subject: [PATCH] fix(list reporter): print file name --- packages/playwright/src/reporters/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/reporters/list.ts b/packages/playwright/src/reporters/list.ts index ee43deff68..1b766aa000 100644 --- a/packages/playwright/src/reporters/list.ts +++ b/packages/playwright/src/reporters/list.ts @@ -112,7 +112,7 @@ class ListReporter extends BaseReporter { } const index = this._stepIndex.get(step)!; - const title = test.title + colors.dim(stepSuffix(step)); + const title = isTTY ? test.title + colors.dim(stepSuffix(step)) : formatTestTitle(this.config, test, step); const prefix = this._testPrefix(index, ''); let text = ''; if (step.error)