Skip to content

Commit 33e3c79

Browse files
authored
Update ReportProcessor.js
1 parent fcebccd commit 33e3c79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

browserstack-report-action/src/services/ReportProcessor.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ class ReportProcessor {
1111
const { summary } = core;
1212
await summary.addHeading('BrowserStack Test Report');
1313

14-
const addToSummaryReport = this.reportData?.report?.basicHtml;
14+
let addToSummaryReport = this.reportData?.report?.basicHtml;
15+
addToSummaryReport = `<html> ${addToSummaryReport} </html>`;
16+
core.info(`Report HTML: ${addToSummaryReport}`);
1517
if (addToSummaryReport) {
16-
await summary.addRaw(`<html>${addToSummaryReport}</html>`);
18+
19+
await summary.addRaw(addToSummaryReport);
1720
} else {
1821
await summary.addRaw('⚠️ No report content available');
1922
}

0 commit comments

Comments
 (0)