diff --git a/src/report_workflow/test_report_runner.py b/src/report_workflow/test_report_runner.py index 80940525da..d564b1ee9f 100644 --- a/src/report_workflow/test_report_runner.py +++ b/src/report_workflow/test_report_runner.py @@ -260,13 +260,13 @@ def get_failed_tests(base_path: str, test_number: str, test_type: str, component target_div = soup.find("div", {"id": "tab0"}) target_a_hash = [a for li in target_div.find_all("li") for a in li.find_all("a", href=True) if "#" in a["href"]] for a in target_a_hash: - failed_test_list.append(a["href"].replace("classes/", "")) + failed_test_list.append(a["href"].replace("classes/", "").replace(".html", "")) else: soup = BeautifulSoup(result_content, "xml") class_name = "DefaultClassName" for testsuite in soup.find_all("testsuite"): if testsuite["name"] == "Root Suite": - class_name = testsuite["file"] + class_name = testsuite["file"].replace("cypress/", "") testsuite_failures = int(testsuite["failures"]) if testsuite_failures > 0: for testcase in testsuite.find_all("testcase"):