Skip to content

Commit

Permalink
fix dedupe_test
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Nov 6, 2024
1 parent 5d04360 commit c93ef75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/dedupe_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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"))
Expand Down Expand Up @@ -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"))
Expand All @@ -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"))
Expand Down

0 comments on commit c93ef75

Please sign in to comment.