@@ -251,6 +251,7 @@ def open(self, url):
251251 or "ERR_CONNECTION_CLOSED" in e.msg
252252 or "ERR_CONNECTION_RESET" in e.msg
253253 or "ERR_NAME_NOT_RESOLVED" in e.msg
254+ or "ERR_INTERNET_DISCONNECTED" in e.msg
254255 ):
255256 shared_utils.check_if_time_limit_exceeded()
256257 self.__check_browser()
@@ -14048,17 +14049,21 @@ def __get_test_id(self):
1404814049 if self._sb_test_identifier and len(str(self._sb_test_identifier)) > 6:
1404914050 test_id = self._sb_test_identifier
1405014051 test_id = test_id.replace(".py::", ".").replace("::", ".")
14051- test_id = test_id.replace("/", ".")
14052+ test_id = test_id.replace("/", ".").replace(" ", "_")
1405214053 elif hasattr(self, "_using_sb_fixture") and self._using_sb_fixture:
1405314054 test_id = sb_config._latest_display_id
1405414055 test_id = test_id.replace(".py::", ".").replace("::", ".")
14055- test_id = test_id.replace("/", ".")
14056+ test_id = test_id.replace("/", ".").replace(" ", "_")
1405614057 return test_id
1405714058
1405814059 def __get_test_id_2(self):
1405914060 """The id for SeleniumBase Dashboard entries."""
1406014061 if "PYTEST_CURRENT_TEST" in os.environ:
14061- return os.environ["PYTEST_CURRENT_TEST"].split(" ")[0]
14062+ full_name = os.environ["PYTEST_CURRENT_TEST"]
14063+ if "] " in full_name:
14064+ return full_name.split("] ")[0] + "]"
14065+ else:
14066+ return full_name.split(" ")[0]
1406214067 if hasattr(self, "is_behave") and self.is_behave:
1406314068 return self.__get_test_id()
1406414069 test_id = "%s.%s.%s" % (
@@ -14075,7 +14080,11 @@ def __get_test_id_2(self):
1407514080 def __get_display_id(self):
1407614081 """The id for running a test from pytest. (Displayed on Dashboard)"""
1407714082 if "PYTEST_CURRENT_TEST" in os.environ:
14078- return os.environ["PYTEST_CURRENT_TEST"].split(" ")[0]
14083+ full_name = os.environ["PYTEST_CURRENT_TEST"]
14084+ if "] " in full_name:
14085+ return full_name.split("] ")[0] + "]"
14086+ else:
14087+ return full_name.split(" ")[0]
1407914088 if hasattr(self, "is_behave") and self.is_behave:
1408014089 file_name = sb_config.behave_scenario.filename
1408114090 line_num = sb_config.behave_line_num
@@ -14222,6 +14231,7 @@ def __process_dashboard(self, has_exception, init=False):
1422214231 alt_test_id = sb_config._display_id[test_id]
1422314232 alt_test_id = alt_test_id.replace(".py::", ".")
1422414233 alt_test_id = alt_test_id.replace("::", ".")
14234+ alt_test_id = alt_test_id.replace(" ", "_")
1422514235 if alt_test_id in sb_config._results.keys():
1422614236 sb_config._results.pop(alt_test_id)
1422714237 if test_id in sb_config._results.keys() and (
0 commit comments