We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb3585 commit adb1998Copy full SHA for adb1998
seleniumbase/plugins/pytest_plugin.py
@@ -935,8 +935,13 @@ def pytest_unconfigure():
935
with open(html_report_path, 'r', encoding='utf-8') as f:
936
the_html_r = f.read()
937
if sb_config._saved_dashboard_pie:
938
+ h_r_name = sb_config._html_report_name
939
+ if "/" in h_r_name and h_r_name.endswith(".html"):
940
+ h_r_name = h_r_name.split('/')[-1]
941
+ elif "\\" in h_r_name and h_r_name.endswith(".html"):
942
+ h_r_name = h_r_name.split('\\')[-1]
943
the_html_r = the_html_r.replace(
- "<h1>%s</h1>" % sb_config._html_report_name,
944
+ "<h1>%s</h1>" % h_r_name,
945
sb_config._saved_dashboard_pie)
946
947
"</head>", '</head><link rel="shortcut icon" '
0 commit comments