Skip to content

Commit 636a170

Browse files
fix one more test
1 parent 3e188c1 commit 636a170

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,11 @@ def test_add_and_promote_stub_finding(self):
219219
driver.find_element(By.PARTIAL_LINK_TEXT, "App Vulnerable to XSS3").click()
220220
self.assertTrue(self.is_info_message_present(text="In order to promote a Potential Finding to a Verified Finding you must provide the following information."))
221221
self.assertEqual(driver.find_element(By.ID, "id_title").get_attribute("value"), "App Vulnerable to XSS3")
222-
# Edit finding Description
223-
driver.find_element(By.ID, "id_cvssv3_score").send_keys(Keys.TAB, Keys.TAB, "This is a promoted stub finding")
222+
# finding Description
223+
# Note item [0] is a meta tag on the top of the page with name "description", so we use [1]
224+
driver.execute_script("document.getElementsByName('description')[1].style.display = 'inline'")
225+
driver.find_elements(By.NAME, "description")[1].send_keys(Keys.TAB, "This is just a test finding")
226+
224227
# "Click" the Done button to Edit the finding
225228
driver.find_element(By.ID, "submit").click()
226229

0 commit comments

Comments
 (0)