Skip to content

Commit 40b374a

Browse files
committed
Fix issue with loading more data than needed
1 parent 2e27f31 commit 40b374a

File tree

11 files changed

+603
-502
lines changed

11 files changed

+603
-502
lines changed

seleniumbase/behave/behave_sb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def dashboard_pre_processing():
989989
def _create_dashboard_assets_():
990990
import codecs
991991
from seleniumbase.js_code.live_js import live_js
992-
from seleniumbase.core.style_sheet import pytest_style
992+
from seleniumbase.core.style_sheet import get_pytest_style
993993

994994
abs_path = os.path.abspath(".")
995995
assets_folder = os.path.join(abs_path, "assets")
@@ -1001,11 +1001,11 @@ def _create_dashboard_assets_():
10011001
existing_pytest_style = None
10021002
with open(pytest_style_css, "r") as f:
10031003
existing_pytest_style = f.read()
1004-
if existing_pytest_style == pytest_style:
1004+
if existing_pytest_style == get_pytest_style():
10051005
add_pytest_style_css = False
10061006
if add_pytest_style_css:
10071007
out_file = codecs.open(pytest_style_css, "w+", encoding="utf-8")
1008-
out_file.writelines(pytest_style)
1008+
out_file.writelines(get_pytest_style())
10091009
out_file.close()
10101010
live_js_file = os.path.join(assets_folder, "live.js")
10111011
add_live_js_file = True
@@ -1082,8 +1082,8 @@ def _perform_behave_unconfigure_():
10821082
)
10831083
find_it_3 = '<td class="col-result">Untested</td>'
10841084
swap_with_3 = '<td class="col-result">Unreported</td>'
1085-
find_it_4 = 'href="%s"' % constants.Dashboard.DASH_PIE_PNG_1
1086-
swap_with_4 = 'href="%s"' % constants.Dashboard.DASH_PIE_PNG_2
1085+
find_it_4 = 'href="%s"' % constants.Dashboard.get_dash_pie_1()
1086+
swap_with_4 = 'href="%s"' % constants.Dashboard.get_dash_pie_2()
10871087
try:
10881088
abs_path = os.path.abspath(".")
10891089
dashboard_path = os.path.join(abs_path, "dashboard.html")

seleniumbase/core/encoded_images.py

Lines changed: 171 additions & 143 deletions
Large diffs are not rendered by default.

seleniumbase/core/report_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import time
66
from seleniumbase import config as sb_config
77
from seleniumbase.config import settings
8-
from seleniumbase.core.style_sheet import style
8+
from seleniumbase.core.style_sheet import get_report_style
99

1010
LATEST_REPORT_DIR = settings.LATEST_REPORT_DIR
1111
ARCHIVE_DIR = settings.REPORT_ARCHIVE_DIR
@@ -292,7 +292,7 @@ def build_report(
292292
passing_list,
293293
)
294294
report_html = "<html><head>%s</head><body>%s</body></html>" % (
295-
style,
295+
get_report_style(),
296296
table_view,
297297
)
298298
results_file = add_results_page(report_html)

0 commit comments

Comments
 (0)