Skip to content

Commit

Permalink
Fix assets reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfowler committed Oct 31, 2024
1 parent a9483b9 commit 29884ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class ReportableElementCreator {
const assetsElement = assetsRootElement.querySelector('ul');

for (const asset of reportable.Assets) {
const assetElement = this.assetTemplate.cloneNode(true);
const assetElement = this.assetTemplate.content.cloneNode(true);
const assetLinkElement = assetElement.querySelector('a');
assetLinkElement.textContent = asset.FileSummary;
assetLinkElement.href = asset.FilePath;
Expand Down
4 changes: 2 additions & 2 deletions CSF.Screenplay.JsonToHtmlReport/templateSrc/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ <h4 class="scenarioName" title="Scenario name; click to expand/collapse">Scenari
<code class="exception">Exception</code>
<aside>
<span class="performableType"><i>Performable .NET type name</i></span>
<div class="assets"><ul></ul></div>
<div class="assets" title="Assets produced from this performable"><ul></ul></div>
</aside>
<ol class="reportableList collapsible"></ol>
</li>
</template>
<template id="assetTemplate">
<li><a href="Asset path" class="image">Asset summary</a></li>
<li><a href="Asset path" class="image" title="Download/view this asset">Asset summary</a></li>
</template>
</body>
</html>

0 comments on commit 29884ab

Please sign in to comment.