From c93ef75da886efff7843481ae57a60143e0b2748 Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Wed, 6 Nov 2024 11:50:47 +0100 Subject: [PATCH] fix dedupe_test --- tests/dedupe_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/dedupe_test.py b/tests/dedupe_test.py index f27672f793b..194c8e368ee 100644 --- a/tests/dedupe_test.py +++ b/tests/dedupe_test.py @@ -277,7 +277,7 @@ def test_import_same_eng_tests(self): driver.find_element(By.PARTIAL_LINK_TEXT, "Same Eng Test 1").click() driver.find_element(By.ID, "dropdownMenu1").click() driver.find_element(By.LINK_TEXT, "Re-Upload Scan").click() - driver.find_element(By.ID, "id_file").send_keys(self.relative_path + "/dedupe_scans/dedupe_endpoint_1.xml") + driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_endpoint_1.xml")) driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click() self.assertTrue(self.is_success_message_present(text="a total of 3 findings")) @@ -288,7 +288,7 @@ def test_import_same_eng_tests(self): driver.find_element(By.PARTIAL_LINK_TEXT, "Same Eng Test 2").click() driver.find_element(By.ID, "dropdownMenu1").click() driver.find_element(By.LINK_TEXT, "Re-Upload Scan").click() - driver.find_element(By.ID, "id_file").send_keys(self.relative_path + "/dedupe_scans/dedupe_cross_1.csv") + driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_cross_1.csv")) driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click() self.assertTrue(self.is_success_message_present(text="a total of 3 findings")) @@ -420,7 +420,7 @@ def test_import_cross_test(self): driver.find_element(By.PARTIAL_LINK_TEXT, "Immuniweb Test").click() driver.find_element(By.CSS_SELECTOR, "i.fa-solid.fa-ellipsis-vertical").click() driver.find_element(By.LINK_TEXT, "Re-Upload Scan Results").click() - driver.find_element(By.ID, "id_file").send_keys(self.relative_path + "/dedupe_scans/dedupe_endpoint_1.xml") + driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_endpoint_1.xml")) driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click() self.assertTrue(self.is_success_message_present(text="a total of 3 findings")) @@ -431,7 +431,7 @@ def test_import_cross_test(self): driver.find_element(By.PARTIAL_LINK_TEXT, "Generic Test").click() driver.find_element(By.CSS_SELECTOR, "i.fa-solid.fa-ellipsis-vertical").click() driver.find_element(By.LINK_TEXT, "Re-Upload Scan Results").click() - driver.find_element(By.ID, "id_file").send_keys(self.relative_path + "/dedupe_scans/dedupe_cross_1.csv") + driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_cross_1.csv")) driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click() self.assertTrue(self.is_success_message_present(text="a total of 3 findings"))