Skip to content

Commit

Permalink
Display describe name in HTML report. (#4245)
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored Aug 23, 2024
1 parent 65ef316 commit e06fd65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reporter/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class HtmlReporter extends BaseReporter {
}

aggregateEnvironments(testEnv, moduleKey, module) {
const moduleName = module.name ? `${module.name} (${moduleKey})` : moduleKey;

if (!this.environments[testEnv]) {
this.environments[testEnv] = this.createInitialResult(module);
Expand All @@ -117,7 +118,7 @@ class HtmlReporter extends BaseReporter {
this.environments[testEnv].metadata.browserVersion = this.environments[testEnv].metadata.browserVersion || sessionCapabilities.browserVersion;
}

this.environments[testEnv].modules[moduleKey] = this.adaptModule(module);
this.environments[testEnv].modules[moduleName] = this.adaptModule(module);
}

aggregateStats() {
Expand Down

0 comments on commit e06fd65

Please sign in to comment.