diff --git a/serenity-report-resources/src/main/resources/freemarker/components/report-data.ftl b/serenity-report-resources/src/main/resources/freemarker/components/report-data.ftl index af535e461..894b1264b 100644 --- a/serenity-report-resources/src/main/resources/freemarker/components/report-data.ftl +++ b/serenity-report-resources/src/main/resources/freemarker/components/report-data.ftl @@ -1,4 +1,13 @@ <#macro reportData(reportData, number) > + + + <#if reportData.contents?has_content> @@ -13,9 +22,14 @@

${reportData.title} + +  Copy +

-
${(formatter.renderText(reportData.contents))!}
+
+
${(formatter.renderText(reportData.contents))!}
+
<#else> diff --git a/serenity-report-resources/src/main/resources/report-resources/css/core.css b/serenity-report-resources/src/main/resources/report-resources/css/core.css index 1171e854a..4b0777379 100644 --- a/serenity-report-resources/src/main/resources/report-resources/css/core.css +++ b/serenity-report-resources/src/main/resources/report-resources/css/core.css @@ -2546,6 +2546,14 @@ div.scenario-text:empty { background-color: rgba(238,0,0,0.3); } +.copy-button { + float: right; + margin-top: 4px !important; + margin-bottom: 4px !important; + margin-right: 5px; !important; + font-size: 1em; +} + .missing-scenario-warning { color:#ff1631 }