@@ -518,7 +518,7 @@ def test_create_finding_from_template(self):
518518 # Assert to the query to determine status of failure
519519 self .assertTrue (self .is_success_message_present (text = "Finding from template added successfully." ))
520520 self .assertTrue (self .is_text_present_on_page (text = "App Vulnerable to XSS From Template" ))
521-
521+
522522 @on_exception_html_source_logger
523523 def test_create_finding_with_unqiue_characters (self ):
524524 driver = self .driver
@@ -534,36 +534,33 @@ def test_create_finding_with_unqiue_characters(self):
534534 # logger.info("\nClicking on dropdown menu \n")
535535 driver .find_element (By .ID , "dropdownMenu_test_add" ).click ()
536536 self .assertNoConsoleErrors ()
537-
538537 # Click on `Apply Template to Finding`
539538 driver .find_element (By .LINK_TEXT , "Finding From Template" ).click ()
540539 self .assertNoConsoleErrors ()
541540 # click on the template of 'App Vulnerable to XSS'
542541 logger .info ("\n Clicking on the template \n " )
543542 driver .find_element (By .LINK_TEXT , "Use This Template" ).click ()
544543 self .assertNoConsoleErrors ()
545-
546544 driver .find_element (By .ID , "id_title" ).clear ()
547- # Backslash causes error
548- driver .find_element (By .ID , "id_title" ).send_keys ("App Vulnerable to XSS from \Template" )
545+ # Backslash causes error
546+ driver .find_element (By .ID , "id_title" ).send_keys ("App Vulnerable to XSS from \Template" ) # noqa: W605
549547 self .assertNoConsoleErrors ()
550548 # Click the 'finished' button to submit
551549 driver .find_element (By .ID , "id_finished" ).click ()
552550 self .assertNoConsoleErrors ()
553551 # Query the site to determine if the finding has been added
554-
555552 # Assert to the query to determine status of failure
556553 self .assertTrue (self .is_success_message_present (text = "Finding from template added successfully." ))
557554 self .assertTrue (self .is_text_present_on_page (text = "App Vulnerable to XSS From Template" ))
558555
559556 # Navigate back to the finding list
560557 driver .find_element (By .LINK_TEXT , "Findings" ).click ()
561558 self .assertNoConsoleErrors ()
562- driver .find_element (By .LINK_TEXT , "App Vulnerable to XSS from \Template" ).click ()
559+ driver .find_element (By .LINK_TEXT , "App Vulnerable to XSS from \Template" ).click () # noqa: W605
563560 self .assertNoConsoleErrors ()
564-
561+
565562 # Assert that the finding is present
566- self .assertTrue (self .is_text_present_on_page (text = "App Vulnerable to XSS from \Template" ))
563+ self .assertTrue (self .is_text_present_on_page (text = "App Vulnerable to XSS from \Template" )) # noqa: W605
567564
568565 @on_exception_html_source_logger
569566 def test_delete_finding_template (self ):
0 commit comments