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 c93ef75 commit 8508e57
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 @@ -141,7 +141,7 @@ def test_import_path_tests(self):
driver.find_element(By.PARTIAL_LINK_TEXT, "Path 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_path_1.json")
driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_path_1.json"))
driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click()

# 'Bandit Scan processed a total of 1 findings created 1 findings did not touch 1 findings.'
Expand All @@ -155,7 +155,7 @@ def test_import_path_tests(self):
driver.find_element(By.PARTIAL_LINK_TEXT, "Path 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_path_2.json")
driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_path_2.json"))
driver.find_elements(By.CSS_SELECTOR, "button.btn.btn-primary")[1].click()

# 'Bandit Scan processed a total of 2 findings created 2 findings did not touch 1 findings.'
Expand Down Expand Up @@ -213,7 +213,7 @@ def test_import_endpoint_tests(self):
driver.find_element(By.PARTIAL_LINK_TEXT, "Endpoint 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 @@ -224,7 +224,7 @@ def test_import_endpoint_tests(self):
driver.find_element(By.PARTIAL_LINK_TEXT, "Endpoint 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_endpoint_2.xml")
driver.find_element(By.ID, "id_file").send_keys(os.path.realpath(self.relative_path + "/dedupe_scans/dedupe_endpoint_2.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 Down

0 comments on commit 8508e57

Please sign in to comment.