From d689c0619760bbbf5713c04dc3ab0ae4d068c6c2 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Tue, 6 Feb 2024 14:17:00 +0000 Subject: [PATCH] Add appropriate headings --- framework/python/src/common/testreport.py | 29 +++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/framework/python/src/common/testreport.py b/framework/python/src/common/testreport.py index 25df0e511..b8c42d676 100644 --- a/framework/python/src/common/testreport.py +++ b/framework/python/src/common/testreport.py @@ -222,7 +222,7 @@ def generate_results(self, json_data, page_num): result_list = '''
- Results List +

Results List

Name
Description
@@ -264,8 +264,8 @@ def generate_header(self, json_data): tr_img_b64 = base64.b64encode(f.read()).decode('utf-8') return f'''
-

Testrun report

-

{json_data["device"]["manufacturer"]} {json_data["device"]["model"]}

+

Testrun report

+

{json_data["device"]["manufacturer"]} {json_data["device"]["model"]}

Test Run
''' @@ -299,7 +299,7 @@ def generate_summary(self, json_data): summary += '''
- Device Configuration +

Device Configuration

''' @@ -379,7 +379,7 @@ def generate_result_summary_item(self, key, value, style=None): def generate_device_summary_label(self, key, value, trailing_space=True): label = f''' -
{key}
+

{key}

{value}
''' if trailing_space: @@ -457,18 +457,30 @@ def generate_css(self): position: relative; } - .header-text { + h1 { margin: 0 0 8px 0; font-size: 20px; font-weight: 400; } - .header-title { + h2 { margin: 0px; font-size: 48px; font-weight: 700; } + h3 { + font-size: 24px; + } + + h4 { + font-size: 12px; + font-weight: 500; + color: #5F6368; + margin-bottom: 0; + margin-top: 0; + } + /* Define the summary related css elements*/ .summary-content { position: relative; @@ -480,9 +492,6 @@ def generate_css(self): .summary-item-label { position: relative; - font-size: 12px; - font-weight: 500; - color: #5F6368; } .summary-item-value {