Skip to content

Commit

Permalink
HTML Reporter: Fix unexpected pointer cursor on "Source:" label
Browse files Browse the repository at this point in the history
`#qunit-tests li strong` also applied to `#qunit-tests li .qunit-source strong`
  • Loading branch information
Krinkle committed Jul 13, 2024
1 parent e31f348 commit 52bfa69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qunit.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions src/reporters/HtmlReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 52bfa69

Please sign in to comment.