@@ -43,7 +43,7 @@ def test_create_product(self):
43
43
# "Click" the dropdown button to see options
44
44
driver .find_element (By .ID , "dropdownMenu1" ).click ()
45
45
# "Click" the add prodcut button
46
- driver .find_element (By .LINK_TEXT , "Add Asset " ).click ()
46
+ driver .find_element (By .LINK_TEXT , "Add Product " ).click ()
47
47
# Fill in th product name
48
48
driver .find_element (By .ID , "id_name" ).clear ()
49
49
driver .find_element (By .ID , "id_name" ).send_keys ("QA Test" )
@@ -59,8 +59,8 @@ def test_create_product(self):
59
59
60
60
# Assert ot the query to dtermine status of failure
61
61
# Also confirm success even if Product is returned as already exists for test sake
62
- self .assertTrue (self .is_success_message_present (text = "Asset added successfully" )
63
- or self .is_success_message_present (text = "Asset with this Name already exists." ))
62
+ self .assertTrue (self .is_success_message_present (text = "Product added successfully" )
63
+ or self .is_success_message_present (text = "Product with this Name already exists." ))
64
64
self .assertFalse (self .is_error_message_present ())
65
65
66
66
@on_exception_html_source_logger
@@ -102,8 +102,8 @@ def test_edit_product_description(self):
102
102
# Query the site to determine if the product has been added
103
103
104
104
# Assert ot the query to dtermine status of failure
105
- self .assertTrue (self .is_success_message_present (text = "Asset updated successfully" )
106
- or self .is_success_message_present (text = "Asset with this Name already exists." ))
105
+ self .assertTrue (self .is_success_message_present (text = "Product updated successfully" )
106
+ or self .is_success_message_present (text = "Product with this Name already exists." ))
107
107
self .assertFalse (self .is_error_message_present ())
108
108
109
109
# For product consistency sake, We won't be editting the product title
@@ -130,8 +130,8 @@ def test_enable_simple_risk_acceptance(self):
130
130
# Query the site to determine if the product has been added
131
131
132
132
# Assert ot the query to dtermine status of failure
133
- self .assertTrue (self .is_success_message_present (text = "Asset updated successfully" )
134
- or self .is_success_message_present (text = "Asset with this Name already exists." ))
133
+ self .assertTrue (self .is_success_message_present (text = "Product updated successfully" )
134
+ or self .is_success_message_present (text = "Product with this Name already exists." ))
135
135
self .assertFalse (self .is_error_message_present ())
136
136
137
137
@on_exception_html_source_logger
@@ -405,7 +405,7 @@ def test_add_product_tracking_files(self):
405
405
# Query the site to determine if the finding has been added
406
406
407
407
# Assert ot the query to dtermine status of failure
408
- self .assertTrue (self .is_success_message_present (text = "Added Tracked File to an Asset " ))
408
+ self .assertTrue (self .is_success_message_present (text = "Added Tracked File to a Product " ))
409
409
410
410
@on_exception_html_source_logger
411
411
def test_edit_product_tracking_files (self ):
@@ -462,7 +462,7 @@ def test_delete_product(self, name="QA Test"):
462
462
# Query the site to determine if the product has been added
463
463
464
464
# Assert ot the query to determine status of failure
465
- self .assertTrue (self .is_success_message_present (text = "Asset and relationships removed." ))
465
+ self .assertTrue (self .is_success_message_present (text = "Product and relationships removed." ))
466
466
467
467
@on_exception_html_source_logger
468
468
def test_product_notifications_change (self ):
@@ -502,14 +502,14 @@ def test_product_type_metrics(self):
502
502
# login to site, password set to fetch from environ
503
503
driver = self .driver
504
504
# Navigate to the product page
505
- driver .get (self .base_url + "metrics/organization " )
505
+ driver .get (self .base_url + "metrics/product/type " )
506
506
507
507
def test_product_type_counts_metrics (self ):
508
508
# Test To Edit Product Tracking Files
509
509
# login to site, password set to fetch from environ
510
510
driver = self .driver
511
511
# Navigate to the product page
512
- driver .get (self .base_url + "metrics/organization /counts" )
512
+ driver .get (self .base_url + "metrics/product/type /counts" )
513
513
514
514
my_select = Select (driver .find_element (By .ID , "id_product_type" ))
515
515
my_select .select_by_index (1 )
0 commit comments