Skip to content

Commit 20fddd0

Browse files
committed
Update dashboard timing for LiveJS updates
1 parent 73fbdc2 commit 20fddd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,10 @@ def pytest_unconfigure():
892892
'href="https://seleniumbase.io/img/dash_pie_2.png">')
893893
if sb_config._dash_final_summary:
894894
the_html_d += sb_config._dash_final_summary
895+
time.sleep(0.1) # Add time for "livejs" to detect changes
895896
with open(dashboard_path, "w", encoding='utf-8') as f:
896897
f.write(the_html_d) # Finalize the dashboard
897-
time.sleep(0.5) # Add time for "livejs" to detect changes
898+
time.sleep(0.1) # Add time for "livejs" to detect changes
898899
the_html_d = the_html_d.replace(
899900
"</head>", "</head><!-- Dashboard Report Done -->")
900901
with open(dashboard_path, "w", encoding='utf-8') as f:

0 commit comments

Comments
 (0)