From 52bfa69645ca1e83787eee450c4025f05d9bb249 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 13 Jul 2024 23:11:22 +0100 Subject: [PATCH] HTML Reporter: Fix unexpected pointer cursor on "Source:" label `#qunit-tests li strong` also applied to `#qunit-tests li .qunit-source strong` --- src/qunit.css | 4 ++-- src/reporters/HtmlReporter.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qunit.css b/src/qunit.css index 081c771a5..4e20ab4db 100644 --- a/src/qunit.css +++ b/src/qunit.css @@ -313,11 +313,11 @@ body { display: list-item; } -#qunit-tests li strong { +#qunit-tests li .qunit-test-name { cursor: pointer; } -#qunit-tests li.skipped strong { +#qunit-tests li.skipped .qunit-test-name { cursor: default; } diff --git a/src/reporters/HtmlReporter.js b/src/reporters/HtmlReporter.js index 729b50cfe..8f4b3e5de 100644 --- a/src/reporters/HtmlReporter.js +++ b/src/reporters/HtmlReporter.js @@ -656,6 +656,7 @@ export default class HtmlReporter { appendTest (name, testId, moduleName) { let title = document.createElement('strong'); + title.className = 'qunit-test-name'; title.innerHTML = getNameHtml(name, moduleName); let testBlock = document.createElement('li');