Skip to content

Commit 7f93736

Browse files
committed
Update the self-hosted dashboard
1 parent 50692bf commit 7f93736

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

seleniumbase/fixtures/base_case.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16551,15 +16551,33 @@ def __process_dashboard(self, has_exception, init=False):
1655116551
"%s</head>"
1655216552
% (DASH_PIE_PNG_1, auto_refresh_html, style)
1655316553
)
16554+
num_total = num_passed + num_failed + num_skipped + num_untested
1655416555
table_html = (
1655516556
"<div></div>"
16556-
'<table border="1px solid #e6e6e6;" width="100%;" padding: 5px;'
16557+
'<table style="margin: 0 auto; width: 50%%; border: 1px'
16558+
' solid #e6e6f6; font-size: 14px; text-align: center;">'
16559+
'<thead id="results-table-head">'
16560+
'<tr style="background-color: #F7F7FD;">'
16561+
'<th style="background-color: #FFF8F8; color: #FF2222;">'
16562+
'Failed: %s</th>'
16563+
'<th style="background-color: #FEFEF9; color: #FFA500;">'
16564+
'Skipped: %s</th>'
16565+
'<th style="background-color: #F8FFF8; color: #12A212;">'
16566+
'Passed: %s</th>'
16567+
'<th style="background-color: #F9F9F9; color: #8C8C8C;">'
16568+
'Untested: %s</th>'
16569+
'<th style="background-color: #F4F4FF; color: #575792;">'
16570+
'Total: %s</th>'
16571+
"</tr></thead></table>"
16572+
"<p></p><div></div>"
16573+
'<table border="1px solid #e6e6e6;" width="100%%;" padding: 5px;'
1655716574
' font-size="12px;" text-align="left;" id="results-table">'
1655816575
'<thead id="results-table-head">'
1655916576
'<tr style="background-color: #F7F7FD;">'
1656016577
'<th col="result">Result</th><th col="name">Test</th>'
1656116578
'<th col="duration">Duration</th><th col="links">Links</th>'
1656216579
"</tr></thead>"
16580+
% (num_failed, num_skipped, num_passed, num_untested, num_total)
1656316581
)
1656416582
the_failed = []
1656516583
the_skipped = []

seleniumbase/fixtures/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Recordings:
104104

105105

106106
class Dashboard:
107-
TITLE = "SeleniumBase Dashboard "
107+
TITLE = "SeleniumBase Dashboard 📊"
108108
# STYLE_CSS = "https://seleniumbase.io/cdn/css/pytest_style.css"
109109
STYLE_CSS = "assets/pytest_style.css" # Generated before tests
110110
META_REFRESH_HTML = '<meta http-equiv="refresh" content="12">'

0 commit comments

Comments
 (0)