From cf76d0790d05f057a7b495aec627359e4efafcd1 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 25 Feb 2023 19:19:08 +0100 Subject: [PATCH] test: fix WPT title when no META title is present PR-URL: https://github.com/nodejs/node/pull/46804 Backport-PR-URL: https://github.com/nodejs/node/pull/46768 Reviewed-By: Yagiz Nizipli Reviewed-By: Richard Lau --- test/common/wpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index fdaacea0720f26..91f10e569d0820 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -693,7 +693,7 @@ class WPTRunner { getTestTitle(filename) { const spec = this.specMap.get(filename); - return spec.meta?.title || filename; + return spec.meta?.title || filename.split('.')[0]; } // Map WPT test status to strings