@@ -917,6 +917,13 @@ def pytest_unconfigure():
917
917
stamp += "\n <!--Test Run Complete-->"
918
918
find_it = constants .Dashboard .META_REFRESH_HTML
919
919
swap_with = '' # Stop refreshing the page after the run is done
920
+ find_it_2 = "Awaiting results... (Refresh the page for updates)"
921
+ swap_with_2 = (
922
+ "Test Run ENDED: Some results UNREPORTED due to skipped tearDown!" )
923
+ find_it_3 = '<td class="col-result">Untested</td>'
924
+ swap_with_3 = '<td class="col-result">Unreported</td>'
925
+ find_it_4 = 'href="https://seleniumbase.io/img/dash_pie.png"'
926
+ swap_with_4 = 'href="https://seleniumbase.io/img/dash_pie_2.png"'
920
927
try :
921
928
abs_path = os .path .abspath ('.' )
922
929
dashboard_path = os .path .join (abs_path , "dashboard.html" )
@@ -927,6 +934,9 @@ def pytest_unconfigure():
927
934
the_html_d = f .read ()
928
935
# If the test run doesn't complete by itself, stop refresh
929
936
the_html_d = the_html_d .replace (find_it , swap_with )
937
+ the_html_d = the_html_d .replace (find_it_2 , swap_with_2 )
938
+ the_html_d = the_html_d .replace (find_it_3 , swap_with_3 )
939
+ the_html_d = the_html_d .replace (find_it_4 , swap_with_4 )
930
940
the_html_d += stamp
931
941
if sb_config ._dash_is_html_report and (
932
942
sb_config ._saved_dashboard_pie ):
@@ -935,7 +945,7 @@ def pytest_unconfigure():
935
945
sb_config ._saved_dashboard_pie )
936
946
the_html_d = the_html_d .replace (
937
947
"</head>" , '</head><link rel="shortcut icon" '
938
- 'href="https://seleniumbase.io/img/dash_pie_2 .png">' )
948
+ 'href="https://seleniumbase.io/img/dash_pie_3 .png">' )
939
949
if sb_config ._dash_final_summary :
940
950
the_html_d += sb_config ._dash_final_summary
941
951
time .sleep (0.1 ) # Add time for "livejs" to detect changes
@@ -970,7 +980,7 @@ def pytest_unconfigure():
970
980
the_html_r = the_html_r .replace (
971
981
"</head>" , '</head><link rel="shortcut icon" '
972
982
'href='
973
- '"https://seleniumbase.io/img/dash_pie_2 .png">' )
983
+ '"https://seleniumbase.io/img/dash_pie_3 .png">' )
974
984
if sb_config ._dash_final_summary :
975
985
the_html_r += sb_config ._dash_final_summary
976
986
with open (html_report_path , "w" , encoding = 'utf-8' ) as f :
0 commit comments