Skip to content

Commit 490bf8d

Browse files
committed
adding html separately
1 parent ab527d0 commit 490bf8d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

browserstack-report-action/dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38232,9 +38232,10 @@ class ReportProcessor {
3823238232
const { summary } = core;
3823338233
await summary.addHeading('BrowserStack Test Report');
3823438234

38235-
const addToSummaryReport = this.reportData?.report?.basicHtml;
38235+
let addToSummaryReport = this.reportData?.report?.basicHtml;
3823638236
if (addToSummaryReport) {
38237-
await summary.addRaw(`<html>${addToSummaryReport}</html>`);
38237+
addToSummaryReport = `<html> ${addToSummaryReport} </html>`;
38238+
await summary.addRaw(addToSummaryReport);
3823838239
} else {
3823938240
await summary.addRaw('⚠️ No report content available');
3824038241
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ 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;
1515
if (addToSummaryReport) {
16-
await summary.addRaw(`<html>${addToSummaryReport}</html>`);
16+
addToSummaryReport = `<html> ${addToSummaryReport} </html>`;
17+
await summary.addRaw(addToSummaryReport);
1718
} else {
1819
await summary.addRaw('⚠️ No report content available');
1920
}

0 commit comments

Comments
 (0)