Skip to content

Commit 9393240

Browse files
committed
Update the Dashboard console output notification
1 parent 673d736 commit 9393240

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,12 @@ def pytest_runtest_setup():
667667
sb_config.item_count_untested = sb_config.item_count
668668
dashboard_html = os.getcwd() + "/dashboard.html"
669669
star_len = len("Dashboard: ") + len(dashboard_html)
670+
try:
671+
terminal_size = os.get_terminal_size().columns
672+
if terminal_size > 30 and star_len > terminal_size:
673+
star_len = terminal_size
674+
except Exception:
675+
pass
670676
stars = "*" * star_len
671677
colorama.init(autoreset=True)
672678
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX

0 commit comments

Comments
 (0)